Redirect Plugin

This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.

I typically use this to make easy-to-type shortforms/acronyms of topic names. For example:

  • actual content appears under Main.LightweightDirectoryAccessProtocol
  • Main.LDAP contains just a redirect tag. Referencing Main.LDAP anywhere or entering it in the Go box takes one directly to Main.LightweightDirectoryAccessProtocol

Related Topics

Syntax Rules

  • Redirect to a topic within the web: %REDIRECT{"WikiWord"}%
  • Redirect to a topic in another web: %REDIRECT{"TWiki.WikiWord"}%
  • Redirect to any URL: %REDIRECT{"http://google.com/"}%

Caveat

  • Once you've added a redirect tag to a topic, you won't ever see the topic itself until you remove the tag. Therefore, to remove or change redirection, you will need to manually enter the appropriate URL to edit the topic.

Redirect Plugin Settings

    • Set SHORTDESCRIPTION = This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.
    • Set DEBUG = 0

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip RedirectPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/RedirectPlugin.txt Plugin topic
    data/TWiki/RedirectPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/RedirectPlugin.pm Plugin Perl module
  • Test if the installation was successful (see above syntax notes)

Plugin Info

Plugin Author: TWiki:Main/SteveMokris
Plugin Version: 20 Jun 2003 (v1.000)
Change History:  
20 Jun 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/RedirectPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/RedirectPluginDev

Revision: r1.2 - 21 Jun 2003 - 01:38 - Main.smokris
TWiki > RedirectPlugin
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback