Title links only work if the slug is present

Links like this https://meta.discourse.org/t/site-being-phished-on-third-party-domain/32112 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.

1 Like

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.

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

3 Likes

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.

3 Likes

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

2 Likes