URL to latest topic in a category


#1

Would it be possible to have a URL that would automatically redirect to the last topic in a category?

e.g.:
https://meta.discourse.org/c/releases/last-topic
or
https://meta.discourse.org/c/releases/last

would automatically redirect to (in this case) : https://meta.discourse.org/t/discourse-version-1-5/30609 or whatever is the latest topic in that category?


(cpradio) #2

What would be the use case for this? I’m trying to think of reasons why I would want to be redirected to a random topic, as you have no idea really what topic it will take you to.


#3

An example would be linking to topic for the latest/current version of discourse (above example) without having to change the link for each new release. You could simply use the url https://meta.discourse.org/c/releases/last or something like that and always have it go to the most current/latest topic in that category.


(cpradio) #4

So by latest, you mean the last topic created, not necessarily the most recent topic to have activity.
Am I understanding that properly?

As version 1.3 may have a reply after 1.4 is announced. You’d still want to link to go to 1.4’s topic


#5

Yeah, fixed the title to reflect that!