Problem with permalinks

I’m seeing some odd behavior with permalinks on our site. I have a permalink set up to https://support.glitch.com/office-hours which works from a fresh session (in an incognito window, for instance, or even just a new tab) By “works” I mean it returns a 301 redirect to the location configured in /admin/customize/permalinks as I’d expect

I have that link inside a different post on the forum, though, and when that link is followed I get this:

The correct page loads on refresh, but as you might imagine this looks pretty unprofessional to our members. Is there some reason I don’t know about that would prevent that from working?

1 Like

Permalinks are intended to remap inbound links to your Discourse instance, and are useful when migrating from another platform. They catch inbound traffic and reroute those requests to the new destination, which is why they work when you hit refresh.

They’re not going to work within Discourse itself, please use the correct internal URL, rather than the permalink that you’ve created which redirects to it.

6 Likes

Yes, these are for external URL redirection, there is no concept of internal redirection.

4 Likes

I believe we have internal redirects possible here now yes @tshenry?

1 Like

I think so. For example it looks like Meta has

https://meta.discourse.org/support

set up as a permalink to our support category.

It looks like we can permalink in the following ways at the moment:

Screen Shot 2021-10-20 at 8.13.30 PM

1 Like

Thanks for the replies, y’all - I’m not managing that Discourse instance any more and we no longer “need” this functionality, but it’d be nice to know it’s there.

@tshenry it seems to me that your example is what was discussed above as an “external” link, though, right? Taking a request from an external source and redirecting it to the proper Discourse URL - what we were hoping to do would be akin to redirecting support - Discourse Meta to Pull requests · discourse/discourse · GitHub (if you all accepted issue reports there, of course), which worked (as I recall) for folks coming into the site from outside, but failed to redirect on the first page load when following a link from a Discourse page.

1 Like

Thanks for the clarification! It does look like we have an example of what you describe in place:

https://meta.discourse.org/guide

Does that seem to be working the way you would expect?

3 Likes

Ha, I initially thought you meant there was an example on that page :wink: - once I realized you meant that was the example, then yes, that seems to do what we wanted. Thanks!!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.