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.
Grazie per le risposte, ragazzi. Non gestisco più quell’istanza di Discourse e non abbiamo più “bisogno” di questa funzionalità, ma sarebbe bello sapere che è disponibile.
@tshenry, a quanto pare il tuo esempio corrisponde a quello discusso sopra come collegamento “esterno”, giusto? Ricevere una richiesta da una fonte esterna e reindirizzarla all’URL corretto di Discourse. Quello che speravamo di fare sarebbe stato simile a reindirizzare Support - Discourse Meta a Issues · discourse/discourse · GitHub (ovviamente, se accettaste segnalazioni di problemi lì). Questo ha funzionato (per quanto ricordo) per gli utenti che arrivavano al sito dall’esterno, ma non ha reindirizzato al primo caricamento della pagina quando si seguiva un collegamento da una pagina di Discourse.
Ah, inizialmente pensavo che tu intendessi che c’era un esempio su quella pagina - una volta capito che quello era l’esempio, sì, sembra fare ciò che volevamo. Grazie!!