DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pageredirect

Page Redirect Plugin

Compatible with DokuWiki

  • 2013-12-08 "Binky" yes
  • 2013-05-10 "Weatherwax" yes
  • 2012-10-13 "Adora Belle" yes
  • 2012-01-25 "Angua" yes

plugin Redirect a wiki page to another wiki page

Last updated on
2014-04-14
Provides
Syntax, Action
Repository
Source
Conflicts with
asiansearch

Similar to 404manager, goto, mediasyntax

Tagged with redirect

Needed for movedel

This plugin allows you to redirect users between pages and namespaces by adding a particular pattern to a page.

Download and Installation

Download and install the plugin using the Plugin Manager using the URL given above. Refer to Plugins on how to install plugins manually.

After the plugin is installed, a simple code redirects to another page:

~~REDIRECT>namespace:page~~

You can also use this syntax since 20120816 version, however this needs to be only thing on the line:

#REDIRECT namespace:page
#redirect namespace:page

Development

I've created git repo of this plugin, as I saw lack of interest by original author to adopting the patches.

glenglen

Estonia, Tallinn
2012/06/11 21:19

Change Log

Bugs / Feature Requests

Please report bugs or feature requests at the Bug tracker.

Discussion

NOTE: Don't post patches, bug reports or feature requests here. Use the Bug Tracker instead. — glenglen

Estonia, Tallinn
2012/06/11 22:30


TODO: solve this (if still actual): marked_conflictingglenglen

Estonia, Tallinn
2012/07/18 20:47


I had a problem with this plugin. One of pages was using it to redirect user to other page (A → B), but later I decided to “switch” pages and make the redirection work in the other direction: B → A. I removed redirection line from page A and added text onto this page; then removed text from site B and added a redirection line. All I get was a loop redirection (stopped after 5 redirections). Disabling and enabling or even reinstalling the plugin did not help…

Anyone solved this?

Solution: Open the redirect page you want to edit with the parameter ”?redirect=no” in the URL and you will get the page without getting redirected. — Markus Frosch 2008/08/06 10:17 Actually add ”&redirect=no” since previous var is a page name —lj 2013/07/29


Maybe an idea to lift this one from devel status so that it can be added to http://wikimatrix.org ? I just can't stand the idea that it is not available in DokuWiki ;-)

If you redirect something it keeps redirecting even if you uninstall and reinstall a fresh plugin….does anyone know where the heck this data is stored so I can go in and change it.
Did you try ~~NOCACHE~~ on the redirected page?

For me the notice that I was redirected didn't display on the page. It's cause by the session not being started. The solution is to add session_start(); just underneath require_once(DOKU_PLUGIN.'action.php'); and comment out the other line that says session_start(); just above $_SESSION[DOKU_COOKIE]['redirect'] = $ID;Ryan McCue


The code you append to the URL to stop the redirect is ”&redirect=no”. -tjones


It says for build-2: “Optional text to tell the user he has been redirected.” Where is this described? I found no hints anywhere?! Bernd, April 16, 2008, 14:19


Is there a way to make the “Index” page exclude redirects? Thanks, – Matthew Pietz, 2008-07-22 14:17:23


This plugin sends my webserver into an infinite loop when I try to access (or even link to) a page with a redirect on it while useheading is enabled.


Please correct your CSS.

The following lines are not valid:

style.css

-moz-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;

flamflam

Aachen
2011/01/05 12:13

border-radius: … is valid CSS3. All of the others are nonstandard vendor extensions. ~~~~
plugin/pageredirect.txt · Last modified: 2014/04/14 20:12 by glen