DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pageredirect

Page Redirect Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes

plugin Redirect a wiki page to another wiki page

Last updated on
2024-03-01
Provides
Syntax, Action
Repository
Source
Conflicts with
asiansearch

Similar to 404manager, goto, mediasyntax, redirect, redirect2

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.

Features:

  • Multiple syntaxes supported for creating redirect pages
  • Notification at redirected page pointing back to provide clarity
  • Supports immediate redirection

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

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

~~REDIRECT>namespace:page~~
~~REDIRECT>http://example.com~~

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

Since 2017-05-12 release, 2014-05-05 (Ponder Stibbons) Dokuwiki is required.

Configuration

The plugin has options that you can change via Configuration Settings in Admin panel.

// Display a note about having been redirected on the new page.
$conf['show_note'] = 1;
 
// Allow redirects to external pages.
$conf['allow_external'] = 1;

Development

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

glen 2012/06/11 21:19

Changes

Releases:

  • Release 2024-03-01 by github-actions[bot]
    What's Changed Fix warnings for PHP 8.1, Deprecations in Dokuwiki 2023-04-04a “Jack Jackrum” by @Miro-Collas in #47 Create workflow to create tag on plugin.info.txt change by @glensc in #49 New Contributors @Miro-Collas made their first contribution in #47 @glensc made their first contribution in #49 Full Changelog: 2022112...2024-03-01
  • 20221120 by glensc
    What's Changed Fix metadata & Move plugin support by @alexdraconian in #40 Make external redirects optional by @tomabrafix in #43 New Contributors @tomabrafix made their first contribution in #43 Full Changelog: 2022010...2022112
  • 20220103 by glensc
    What's Changed Partial support for backlinks with redirects by @michitux in #26 Esperanto translation in #30 Add informal german language by @ebroda in #33 Add redirection target to link metadata by @alexdraconian in #39 New Contributors @michitux made their first contribution in #26 @ebroda made their first contribution in #33 @alexdraconian made their first contribution in #39 Full Changelog: 2017051...2022010
  • 20170512 by glensc
    release 20170512
  • 20160924 by glensc
    add French translations. #14 display pagename if heading is undefined. #15, #9, #13 preserve GET parameters when redirecting. #16 add Russian translations. #17 update Korean translations. #21 fix test which is not passing with new version of Dokuwiki. #22
  • release 20140414 by glensc
    add <br/> tag to the redirect note to avoid being covered by page TOC. #4 add Japanese translations. #7 make ~~REDIRECT pattern non-greedy. #5, #8 honour conf['useheading'] for redirect note. #6, #8 basic support for external redirects. #8 fix access to protected variable after dokuwiki#555. #10, #11
  • 20120816 by glensc
    allow #redirect syntax to be lowercase, but it must be start on line. 1362442
  • 20120612 by glensc
    match anything in page name, to wiki path it is converted internally. f423934 preserve #section anchors on redirect. c31b525 make redirects 301 redirect permanently to be SEO friendly, 9796335 apply prevent conflict patch from wiki comments. 87145da add alternative #REDIRECT namespace/pagename syntax. 01efce2 add zh-tw translations. 82539ae add Korean translations. 6aa688d add portugese translations. e22f33a fix matching page with #REDIRECT syntax. 4dca632

Bugs / Feature Requests

Please report bugs or feature requests at the Bug tracker.

plugin/pageredirect.txt · Last modified: 2024-03-01 15:06 by glen

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki