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?
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.
Merci pour vos réponses, tout le monde ! Je ne gère plus cette instance Discourse et nous n’avons plus « besoin » de cette fonctionnalité, mais ce serait agréable de savoir qu’elle existe.
@tshenry, il me semble que votre exemple correspond à ce qui a été discuté plus haut comme un lien « externe », n’est-ce pas ? Prendre une requête provenant d’une source externe et la rediriger vers l’URL Discourse appropriée. Ce que nous espérions faire serait analogue à rediriger Support - Discourse Meta vers Issues · discourse/discourse · GitHub (si vous acceptiez bien sûr les rapports de problèmes sur GitHub), ce qui fonctionnait (si ma mémoire est bonne) pour les personnes arrivant sur le site depuis l’extérieur, mais échouait à rediriger lors du premier chargement de la page en suivant un lien depuis une page Discourse.
Ha, j’ai d’abord cru que tu parlais d’un exemple sur cette page — une fois que j’ai compris que c’était l’exemple lui-même, alors oui, cela semble faire ce que nous voulions. Merci !!