Main.LightweightDirectoryAccessProtocol
Main.LDAP contains just a redirect tag. Referencing Main.LDAP anywhere or entering it in the Jump Box takes one directly to Main.LightweightDirectoryAccessProtocol
%REDIRECT{"SomeTopic"}%
%REDIRECT{"Someweb.SomeTopic"}%
%REDIRECT{"http://domain.com/"}%
http://domain.com/twiki/bin/view/Main/TopicThatContainsARedirect?q=LDAP"}%. The landing topic url will contain these parameters
%REDIRECT{"Someweb.SomeTopic?q=LDAP"}%
REDIRECT parameters override url parameters
REDIRECT, pass parameter noredirect=on to the url. For example:
http://domain.com/twiki/bin/view/Main/WebHome?noredirect=on
redirectedfrom parameter to the url which contains the Web.Topic that the user has been redirected from. This allows us to display Wikipedia like "Redirected from ..." text on the destination topic. You can use the %URLPARAM{redirectedfrom}% variable to access the parameter and create the "Redirected from..." text.
Below is an example you can put in your template:
%IF{ "$'URLPARAM{redirectedfrom}'" then="<span class='twikiGrayText'>(Redirected from <a href='%SCRIPTURLPATH{view}%/%URLPARAM{redirectedfrom}%?noredirect=on'>%URLPARAM{redirectedfrom}%</a>)</span>"}%
Which will display the following on topics that have been redirected:
(Redirected from Web.Topic)
RedirectPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/RedirectPlugin.txt | Plugin topic |
data/TWiki/VarREDIRECT.txt | REDIRECT variable documentation topic |
data/Sandbox/RedirectPluginTest.txt | Test topic |
data/Sandbox/RedirectPluginDestination.txt | Test topic, landing page |
lib/TWiki/Plugins/RedirectPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main.SteveMokris |
| Copyright: | © 2003 TWiki:Main.SteveMokris, © 2003-2011 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 2011-07-15 |
| Change History: | |
| 2011-07-15: | TWikibug:Item6725: Change global package variables from "use vars" to "our"; doc improvements |
| 2011-05-10: | TWikibug:Item6701: Doc improvements, adding VarREDIRECT variable documentation -- TWiki:Main.PeterThoeny |
| 2011-02-14: | TWikibug:Item6664: Remove any newline characters from redirect URL before redirecting -- TWiki:Main.DipuDeshmukh |
| 2010-07-25: | TWikibug:Item6530: Doc fixes |
| 24 Nov 2008: | TWiki:Main.AndrewRJones: Ability to display Wikipedia like "Redirected from..." |
| 22 Apr 2007: | Arthur Clemens: url parameters are now passed on. Adapted from TWiki:Main.JohnRouillard. |
| 21 Apr 2007: | Arthur Clemens: fixed redirect to non-wiki word topics; added noredirect=on parameter; added support for TWiki:Codev.ShorterURLs. |
| 10 Aug 2006: | Ability to redirect to URL restored by TWiki:Main/ThomasWeigert. Also added support for URL parameters. Fixed a few bugs. |
| 09 Jun 2006: | Dakar port by TWiki:Main/MeredithLesley |
| 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 |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/RedirectPluginAppraisal |

| Copyright 2011 The Board of Trustees of the University of Illinois.webmaster@cs.uic.edu |
WISEST Helping Women Faculty Advance Funded by NSF | | |