I went to link a topic from another topic and noticed that [link](/t/45202)
produces the error
Access Denied while trying to load /t/id_for/14
However [link](/t/blah/45202)
works fine. I believe this is a bug.
I went to link a topic from another topic and noticed that [link](/t/45202)
produces the error
Access Denied while trying to load /t/id_for/14
However [link](/t/blah/45202)
works fine. I believe this is a bug.
actually this is intended behavior. you have to have something in the blah
spot in the URL. You can put whatever you want in there.
But why don’t you have to put something in blah when linking the full address? https://meta.discourse.org/t/45202 when you link on anything other than discourse. (Put that up in the address field of browser and it will work.)
I see what you are saying now. It also works if you open in new tab vs click directly.
Yes exactly. It can’t exactly be removed now since it’d break a lot of links to discourse sites. So I think it should be fixed to allow t/1234 within the same Discourse site for consistency.
Seems similar to:
Yeah that’s the same issue (I couldn’t find that when searching.)
@codinghorror says there that a slug of at least 1 character is required. If that’s the case, how did it end up that slugs aren’t required for fully qualified links?
that’s a good point and I wasn’t aware of it. I don’t think this used to work and I’m not sure why it does.
nice URL hacking!