مشكلة في الروابط الثابتة

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)

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 إعجابات

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

4 إعجابات

أعتقد أننا أصبحنا قادرين على استخدام إعادة التوجيه الداخلية هنا الآن، أليس كذلك @tshenry؟

إعجاب واحد (1)

أعتقد ذلك. على سبيل المثال، يبدو أن Meta قد

https://meta.discourse.org/support

تم إعدادها كرابط دائم لفئة الدعم الخاصة بنا.

يبدو أنه يمكننا إنشاء روابط دائمة بالطرق التالية في الوقت الحالي:

إعجاب واحد (1)

شكرًا لكم على الردود يا أصدقائي - لم أعد أدير مثيل Discourse هذا، ولم نعد ن"حتاج" إلى هذه الوظيفة، لكن سيكون من الجميل معرفة أنها موجودة.

@tshenry يبدو لي أن مثالك هو ما تم مناقشته أعلاه كرابط “خارجي”، أليس كذلك؟ أخذ طلب من مصدر خارجي وإعادة توجيهه إلى عنوان URL الصحيح لـ Discourse - ما كنا نأمل في تحقيقه سيكون مشابهًا لإعادة توجيه Support - Discourse Meta إلى Issues · discourse/discourse · GitHub (إذا قبلتم تقارير المشكلات هناك، بالطبع)، وهو ما نجح (كما أتذكر) مع الأشخاص الذين يدخلون الموقع من الخارج، لكنه فشل في إعادة التوجيه عند التحميل الأول للصفحة عند اتباع رابط من صفحة داخل Discourse.

إعجاب واحد (1)

شكرًا للتوضيح! يبدو بالفعل أن لدينا مثالًا لما تصفه موجودًا حاليًا:

https://meta.discourse.org/guide

هل يبدو أن هذا يعمل بالطريقة التي تتوقعها؟

3 إعجابات

ها، ظننت في البداية أنك تقصد وجود مثال على تلك الصفحة :wink: - بمجرد أن أدركت أنك تقصد أن هذا هو المثال، نعم، يبدو أنه يفعل ما نريده. شكرًا لك!!

إعجاب واحد (1)

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