لا يمكن التنقل للخلف عند استخدام عناوين URL بدون رقم مشاركة

أدركت للتو أنني لا أستطيع العودة إلى الموضوع الأصلي عند اتباع رابط بدون رقم مشاركة. للتوضيح:

https://meta.discourse.org/t/welcome-to-meta-discourse-org/1

https://meta.discourse.org/t/welcome-to-meta-discourse-org/

هل هذا خطأ أم غير ممكن حسب التصميم؟

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

I would say this is an edge case, it was reported before.

Our ember router and discourse server router are in slight disagreement about what to do here.

Relying on slug that is ever changing for routing a topic is super fragile anyway. If we rename “welcome to meta discourse org” to “welcome to meta discourse” this would all break spectacularly anyway.

Don’t remove the topic id if you need stable links is the lesson. The topic id in that case is 1, it is not a post id or number.

إعجابَين (2)

حسناً، شكراً! إذاً، إذا أردت أن تعمل التنقلات الداخلية، أحتاج فعلاً للاحتفاظ بكل من الـ slug والـ id؟ لأن استخدام الـ id فقط لا يبدو أنه يعمل: https://meta.discourse.org/t/1

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

Yes please, keep the slug and the id:

For example https://meta.discourse.org/t/cant-navigate-back-when-using-urls-without-post-number/197060

That way the link will remain stable. Also this will work but it is not as pretty imo and will cause a redirect.

https://meta.discourse.org/t/-/197060

إعجابَين (2)

حسناً، إذن أحتاج فقط إلى أي معرف (slug) والمعرف الصحيح، كما في t/welcome/1
شكراً للتوضيح :ok_hand:

إعجابَين (2)

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