用户工具

站点工具


page_redirect_plugin

Page Redirect Plugin

—- plugin —- description: Redirect a wiki page to another wiki page author : Elan Ruusamäe, David Lorentsen email : glen@delfi.ee type : action, syntax lastupdate : 2024-03-01 compatible : Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Kaos depends : similar : goto, mediasyntax, redirect tags : redirect downloadurl: https://github.com/glensc/dokuwiki-plugin-pageredirect/archive/refs/tags/2024-03-01.zip bugtracker : https://github.com/glensc/dokuwiki-plugin-pageredirect/issues sourcerepo : https://github.com/glensc/dokuwiki-plugin-pageredirect/


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 由 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

    Full Changelog: 2022112...2024-03-01

  • 20221120 由 glensc

    What's Changed

    New Contributors

    Full Changelog: 2022010...2022112

  • 20220103 由 glensc

    What's Changed

    New Contributors

    Full Changelog: 2017051...2022010

  • 20170512 由 glensc

    release 20170512

  • 20160924 由 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 由 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 由 glensc
    • allow #redirect syntax to be lowercase, but it must be start on line. 1362442
  • 20120612 由 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.

https://www.dokuwiki.org/plugin:pageredirect

2024年12月26日19:17:39

page_redirect_plugin.txt · 最后更改: 2024/12/26 19:17 由 jackboo