Can this same solution be used to direct to a users post in a category. eg: I want to encourage my users to create a progress log. I have a Discourse category for these logs so I can link to the category, but I wonder if I could link to their log directly and if they don’t have one it would fall back to the category page. AKA: how else can the /my/ function be applied?
Not sure what I’m seeing here. Mostly due to my unfamiliarity with the URL structure Discourse uses. I get the /t/ part and /my refers to the user but what does /11080/12 indicate?
My is very restrictive and only applicable to certain pages, it can’t be used the way you are depicting. You’d have to write a plugin or something. It would be best to just send them to the category and they can find their existing log (if need be)
OK thanks and agreed, just sending to the category will work, I was just trying to be fancy. Thanks as well to @Mittineague for explaining the url structure. That will be useful info for the future.
The ‘my’ there could be replaced by anything, including a single dash - it’s taking the place of the topic slug, and the server will 302 you to the correct URL.