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.
Obrigado pelas respostas, pessoal. Não estou mais gerenciando essa instância do Discourse e não “precisamos” mais dessa funcionalidade, mas seria bom saber que ela existe.
@tshenry, parece-me que seu exemplo é o que foi discutido acima como um link “externo”, certo? Receber uma solicitação de uma fonte externa e redirecioná-la para a URL correta do Discourse — o que esperávamos fazer seria algo como redirecionar Support - Discourse Meta para Issues · discourse/discourse · GitHub (se vocês aceitassem relatórios de problemas lá, é claro). Isso funcionou (se me lembro bem) para quem acessava o site de fora, mas falhou ao redirecionar no primeiro carregamento da página ao seguir um link de uma página do Discourse.
Ha, inicialmente achei que você estivesse se referindo a um exemplo naquela página - assim que percebi que aquele era o exemplo, então sim, parece fazer o que queríamos. Obrigado!!