Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6001 closed defect (fixed)

Unable to browse wiki history of a wiki page with redirect

Reported by: mitar Owned by: martin_s
Priority: normal Component: ServerSideRedirectPlugin
Severity: normal Keywords:
Cc: mmitar@… Trac Release: 0.11

Description

Unable to browse wiki history of a wiki page with redirect in last version as it is always redirecting even if browsed wiki page version does not have redirect macro. I believe this is a bug as history should still be accessible as it is (also with different versions of redirect macro arguments).

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by martin_s

  • Status changed from new to assigned

Should the redirection by active when the history is browsed or not? If not the wiki will display the redirection target in an info box, like it does directly after it was edited.

comment:2 Changed 5 years ago by martin_s

  • Resolution set to fixed
  • Status changed from assigned to closed

I now fixed this issue in [6792] with redirection in older version enabled.
However, in [6793] the redirection is disabled, showing a 'This page redirects to: <name>' message instead. Please check both versions and tell me your opinion.

comment:3 Changed 5 years ago by mitar

I like [6793] behavior better. When you are browsing older versions it is better to stay on a page. Thanks.

comment:4 Changed 5 years ago by martin_s

I also could program it in a way that redirection is disabled when browsing older versions using the 'previous version' etc. links but is enabled when the version is directly requested using e.g. browser bookmark or copy&paste of the URL. This can be done by looking at the HTTP_REFERER variable which I do anyway to disable redirection direct after the edit process is done.

On the other hand I could simply enable 'version=<n>&redirect=yes' for people who want to have redirects in older versions.

comment:5 Changed 5 years ago by martin_s

(In [6815]) tracserversideredirect/plugin.py:: Added support for redirect=yes URL

argument to enable redirection of older wiki versions. See #6001.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from martin_s. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.