パーマリンクの問題

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.

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

内部リダイレクトが可能になったと思いますよ、@tshenryさん

その通りだと思います。例えば、Meta には以下のリンクがサポートカテゴリへのパーマリンクとして設定されているようです。

https://meta.discourse.org/support

現在、以下のような方法でパーマリンクを設定できるようです。

返信ありがとうございます、皆さん!私はその Discourse インスタンスの管理はもう行っていないので、この機能はもはや「必要」ではありませんが、存在していることは知っておきたいですね。

@tshenry さん、あなたの例は上記で議論された「外部」リンクに該当すると思われますが、そうでしょうか?外部ソースからのリクエストを受け取り、適切な Discourse URL にリダイレクトする——私たちが目指していたのは、Support - Discourse Metahttps://github.com/discourse/discourse/issues(もちろん、そこで Issue レポートを受け付けている場合ですが)にリダイレクトするようなものでした。これは(私の記憶では)サイト外部から来た人々には機能していましたが、Discourse ページからのリンクをたどった場合、最初のページ読み込み時にはリダイレクトが失敗していました。

ご説明いただきありがとうございます!おっしゃる内容に合致する例が既に存在しているようです:

https://meta.discourse.org/guide

これはご期待通りに機能しているでしょうか?

あは、最初はあのページに例が載っているのかと思いました :wink: でも、それがまさに例だったと気づいたので、確かに私たちが求めていたことを実現しているようですね。ありがとう!!