caiiiycuk
(Aleksander Guryanov)
25. Dezember 2020 um 16:19
1
Hi. I use slug only urls, like:
https://talks.dos.zone/t/007-james-bond-the-stealth-affair-1990-fr/
But if I open it directly in browser it redirects to welcome topic. When I click same url into another topic it works normally.
Example (click on French link):
Is it intended behavior?
2 „Gefällt mir“
Falco
(Falco)
25. Dezember 2020 um 18:01
3
This is working as intended.
Discourse support the 3 types:
But if the slug starts with a number we special case and look for the first number as an ID:
https://github.com/discourse/discourse/blob/master/app/controllers/topics_controller.rb#L65-L70
8 „Gefällt mir“
caiiiycuk
(Aleksander Guryanov)
25. Dezember 2020 um 18:41
4
Ahh ok. So it will affect little amount of urls. Thank you!
pfaffman
(Jay Pfaffman)
25. Dezember 2020 um 21:14
5
caiiiycuk:
. I use slug only urls
That’s more work than using the url in your browser (that has the ID) and will break if you rename the topic. (plus when the title starts with a number)
2 „Gefällt mir“