Changes between Version 3 and Version 4 of ServerSideRedirectPlugin


Ignore:
Timestamp:
Nov 12, 2008, 11:14:38 AM (15 years ago)
Author:
Martin Scharrer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerSideRedirectPlugin

    v3 v4  
    55This 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.
    66
    7 This plug-in is compatible (i.e. can be used) with the client side redirect macro TracRedirect but doesn't depend on it.
     7This plug-in is compatible (i.e. can be used) with the client side redirect macro TracRedirect but doesn't depend on it. Because the redirect is caused by the server (using a HTTP redirect request to the browser) it is much faster and less noticeable for the user. The back-link feature of TracRedirect can also be used for server side redirected pages because both generate the same URL attributes.
    88
    99A 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.
    1010
     11To edit a redirecting wiki page access its URL with `?action=edit` appended. To view the page either use `?action=view`, which will print the redirect target (if TracRedirect isn't active, which will redirect the wiki using client side code), or `?redirect=no` which disables redirection of both the ServerSideRedirectPlugin and TracRedirect plug-in.
     12
     13Direct after the redirect target is added (or modified) Trac will automatically reload it, as it does with all wiki pages. This plug-in will detect this and not redirect but display the wiki page with the redirect target URL printed to provide feedback about the successful change. However, further visits will trigger the redirect.
     14
    1115== Dependencies ==
    12 This plug-in uses the ExtractUrlPlugin, which much also be install.
     16This plug-in uses the ExtractUrlPlugin, which must also be install.
    1317
    1418== Bugs/Feature Requests ==
     
    2832You can check out ServerSideRedirectPlugin from [http://trac-hacks.org/svn/serversideredirectplugin here] using Subversion, or [source:serversideredirectplugin browse the source] with Trac.
    2933
    30 == Example ==
     34== Usage Examples ==
    3135
    3236The following 'macro' at the begin of the wiki page will cause a redirect to the ''!OtherWikiPage''.