[HowTo ] Add a bookmarklet to change URL of Archived forum links

Difficulty: ★☆☆☆☆

Clicking on this bookmark will change the URL from https://forum.manjaro.org to https://archived.forum.manjaro.org/

This is a simple temporary workaround for people having trouble with looking up old forum posts and getting Page doesn’t exist error (mainly using search engines).

  1. Open your web browser and create a new bookmark.

  2. Right-click on the bookmark and Edit the URL/ Location with the following line. (Optional: Change Title / Name)

javascript:(function(){window.location=window.location.toString().replace(‘https://forum.’, ‘https://archived.forum.’)})()

Now when you get the Page doesn’t exist error, just click on this bookmarklet.

PS: This is just a temporary fix till search engines index those pages.

Edit: As mentioned by @papajoke, regex breaks on some browsers. So the script has been modified accordingly.

Alternative solutions

Browser extension method

Script with auto redirection

13 Likes

great thanks
regex not work with chromium ? Uncaught SyntaxError: Unexpected token '/' , fix without regex…

javascript:(function(){window.location=window.location.toString().replace('https://forum.', 'https://archived.forum.')})()
3 Likes

Please note that the string:

javascript:(function(){window.location=window.location.toString().replace(‘https://forum.’, ‘https://archived.forum.’)})()

contains the apostrophe character:
(slightly tilted), write down with a US-International keyboard, I suppose.

On an european keyboard, the apostrophe is a
' (straight sign).

I use an European coding, so If I copy and paste the string into the URL Location in Firefox, it changes the apostrophe with %E2%80%98 and the bookmarklet doesn’t work.

So, for those who use the European coding, they have to correct the apostrophe (straight sign) by hand.

2 Likes