Redirect Article- possible?

Hi,

we are using Discourse as KnowledgeBase. As articles evolve we frequently merge some tickets. But obviously links from other articles exists to both articles.

Is there a way to redirect from one article to another?

I mean, yes of course I can simply create the link as content of the old ticket linking to the new one but I am thinking of an autmated redirect (invisble for users)

Is it possible?

/KNEBB

Hi! check out your admin page at yoursite/admin/customize/permalinks

It should do just what you want (we love it)

إعجابَين (2)

Did we clarify the UI here @techAPJ so people don’t think this can be used to redirect one Discourse topic to another?

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

Hmmmmm…

# Oops! That page doesn’t exist or is private.

Were you not logged in? Or are you not an admin on the site?

We didn’t. Added on my list to do so. :memo:

4 إعجابات

Ok guys,

got it so far. I am on the page you told me. But looks like I am too dumb to use it.
Again, I have an thread with the following URL:
https://help.domain.com/t/old-thread-title/6418

It has outdated content on it and I want it to link to a newer thread with URL:
https://help.domain.com/t/new-thread-title/11345

So I enterd in the admin’s permalink site on the left the first URl from above and entered the thread-ID of 11345 in the second field.

Trying to access the URL still shows old contend. Tried with a second browser where I am not logged in and did a “Reload” as well. Still old content.

Any ideas?
Thanks!

/KNEBB

Did I get it right now? I can not use this feature to redirect from “inside” Discourse? Well, this explains why it is not working.

In this case back to my original question:

I have a topic which is outdated. I need to replace. I have a new article which replaces the old one. There are several links in the forum to the old article. I want these (internal) links now to point to the new article.

Is this possible?

Note: Yes, I can edit the old thread and just place a link to the new one there… but that’s not really nice…

Thanks again!

/KNEBB

Then you should probably use Replace a string in all posts to change those links.

But then the old article can still be accessed by people who use their local browser bookmarks.

Still, not a really usable solution.

Further ideas?
Honestly, I am surprise this appearing to be so complicated. Am I really the only one needing such thing?

Thanks

/KNEBB

Done via:

https://github.com/discourse/discourse/commit/ed70595314f02e89c341287fac2fa56a81d2de05

3 إعجابات

Hi,

ok, you fixed the description, right? So no one should complain any further about permalinks not working on internal links.

But the issue is still unresolved, with this change, right?

So there is no way to replace an existing article by a new one?

Thanks!

/KNEBB

Just edit and replace the text?

أنا أختطف هذا الموضوع لأنني أريد القيام بنفس الشيء بالضبط. وأنا متأكد أيضًا من أن knebb لن يغضب لأنني أتابع خطته الأصلية (في نفس الشركة)

إذًا، حسب فهمي، يجب أن تقوم الروابط الدائمة بإعادة التوجيه من

https://help.domain.com/t/old-thread-title/6418
إلى
https://help.domain.com/t/new-thread-title/11345

ولكنها لا تفعل ذلك. أريد نقل استدعاء المتصفح من عنوان URL الأول إلى عنوان URL الثاني. لا توجد روابط داخلية تصل مباشرة إلى المقالة.
مثل knebb، أنا مرتبك قليلاً لأن هذا التوجيه البسيط لا يُطلب كثيرًا ويبدو أنه غير ممكن.

شكرًا على أي تلميح لحل هذه المهمة. DirkS

تم العثور على الحل. نحتاج إلى حذف المكرر (في مثالي old-thread-title/6418) واستخدام الروابط الدائمة. عندها لن يدرك المسؤولون إعادة التوجيه حيث سيرى المسؤولون أيضًا المواضيع المحذوفة. بالنسبة لمستخدمينا العاديين، تعمل إعادة التوجيه.

تم إغلاق هذا الموضوع تلقائيًا بعد 30 يومًا من آخر رد. لم تعد الردود الجديدة مسموح بها.