wiki:ServerSideRedirectPlugin

Version 1 (modified by martin_s, 6 years ago) (diff)

New hack ServerSideRedirectPlugin, created by martin_s

Server Side Redirect from a Wiki Page

Description

This plug-in allow to place a redirect macro at the start of any wiki page which will cause an server side redirect when the wiki page is viewed.

This plug-in is compatible with the client side redirect macro TracRedirect.

A protection for 1st (A-A) and 2nd (A-B-A) order redirect loops is implemented, but higher order loops (A-B-C-A, etc.) must be handled by the browser or the user. Firefox 3 handles redirect loops well.

Bugs/Feature Requests

Existing bugs and feature requests for ServerSideRedirectPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out ServerSideRedirectPlugin from here using Subversion, or browse the source with Trac.

Example

The following 'macro' will cause a redirect to the OtherWikiPage. Any other TracLink can be used.

[[redirect(OtherWikiPage)]]

Recent Changes

[11890] by rjollos on 2012-08-04 03:37:28
Fixes #6940, #8680:

  • Removed setup_requires statement from setup.py. The listed package is only necessary for installation, not for running setuptools.
  • Modified import statement for extract_url since it was not importing correctly.


Tested with Trac 1.0dev-r11167.

[8552] by martin_s on 2010-08-30 23:57:55
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.
[8428] by martin_s on 2010-08-23 13:12:11
Removed outdated variable rev from setup file.

Author/Contributors

Author: martin_s
Contributors: