Forum:Go back to previous page link?

I can't for the life of me find a way to set up a go back to previous page link. Currently I've got it set to go to a specific link but I'd like to add a link that will return the user to the last page they visited since it may not be the specific link i provide. Any help would be greatly appreciated.

Jodocow737 09:38, 30 January 2009 (UTC)


 * I dont know of any magic word that could be used for this.
 * But when an user is on a page and clic login (before the new ajax login), the URL of the current page was passed in the URL of the login page in the parameter "page to return to" (dont remember exactly). So, aside from finding a mediawiki extension that could handle this if any, the wiki software would have to get a big change to include URL of previous page in every link on generated pages (plus adding the needed magic word).
 * You might want to wait for a staff to get by, because it seems to me this isn't possible but they might know better. — TulipVorlax 11:52, 30 January 2009 (UTC)


 * Another thing i just though of is to use JavaScript to insert something like this on the page :


 * — TulipVorlax 11:55, 30 January 2009 (UTC)


 * This make a button. For a simple link, this :

Back
 * — TulipVorlax 11:58, 30 January 2009 (UTC)

Hmm i must be missing something trying those. When i paste those on a page it doesnt do anything but show me the text for them.


 * You can't put them directly in the page edit window. You must use a fuction in one (or all) the JS files of the site to add this before, inside or after one element of the page that have an ID or something.
 * This need sysop rights on the wiki. — TulipVorlax 14:21, 30 January 2009 (UTC)


 * By the way, the js files are MediaWiki:Monobook.js, mediawiki:monaco.js or MediaWiki:Common.js. — TulipVorlax 14:24, 30 January 2009 (UTC)

Ahh that would explain it. Hopefully my request to adopt this wiki will be processed and approved soon then


 * You can't use  tags on the wiki, so you can't set classes/ids. you'd have to use the JS on a parent element -- Sixorish 22:22, 30 January 2009 (UTC)