Title links only work if the slug is present


(John Muhl) #1

Links like this Site being served on third party domain, stealing rankings work but when you only use the /t/:id part like this https://meta.discourse.org/t/32112 you get an error instead.

Reloading the error page causes the correct page to load.


Slug is required in topic URL?
(Jeff Atwood) #2

That is not intended to work. Why would anyone expect that to work?

Add a slug of 1 character if you want the “shortest” form.


(John Muhl) #3

I only expected it to work since pasting the short URL into the address bar and pressing enter works.


(Kane York) #4

This is actually the same issue as not being able to click this link:

https://meta.discourse.org/raw/32165/1

The Ember router, if it can’t find a route, just gives up and shows the error page. (The error page for a network request, no less :sweat:) We need to tell it to make a HEAD request if the route isn’t found and do a non-pushState() navigation if the page exists.


(Sam Saffron) #5

For this case the simpler fix is just adding a route :slight_smile: