Problema con i permalink

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 Mi Piace

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 Mi Piace

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

4 Mi Piace

Credo che ora abbiamo la possibilità di reindirizzamenti interni qui, vero @tshenry?

1 Mi Piace

Penso di sì. Ad esempio, sembra che Meta abbia

https://meta.discourse.org/support

impostato come permalink alla nostra categoria di supporto.

Al momento, sembra che possiamo creare permalink nei seguenti modi:

1 Mi Piace

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.

1 Mi Piace

Grazie per il chiarimento! Sembra che abbiamo già in atto un esempio di ciò che descrivi:

https://meta.discourse.org/guide

Pensi che funzioni come ti aspetteresti?

3 Mi Piace

Ah, inizialmente pensavo che tu intendessi che c’era un esempio su quella pagina :wink: - una volta capito che quello era l’esempio, sì, sembra fare ciò che volevamo. Grazie!!

1 Mi Piace

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