Description

A #REDIRECT to an anchor within a page doesn't work. Instead it tries to go to a page with the name including the # (%23) sign within it (originally posted at MoinMoinQuestions/UsingTheWiki#RedirectingToAnAnchor)

Steps to reproduce

  1. Put an anchor within a page: <<Anchor(GetHere)>> (make sure it is a long page (that is, that doesn't fit entirely in the browser window) and that the anchor is not at the top of the page)

  2. Create a new page (e.g. GoToAnchor) to redirect to the anchor (if the original page were named AnchorTarget, then your new page should only contain the following: #REDIRECT AnchorTarget#GetHere.

Example

URL: http://moin.baby.com.ar/PruebaDeAnchor

This should go to http://moin.baby.com.ar/InstalacionesConfiguraciones#DreamHost, however, it goes to http://moin.baby.com.ar/InstalacionesConfiguraciones%23DreamHost?action=show&redirect=PruebaDeAnchor

I guess the complete correct URL should be: http://moin.baby.com.ar/InstalacionesConfiguraciones?action=show&redirect=PruebaDeAnchor#DreamHost

In 1.6.0 release (that's what's installed in the example), it shows the correct page, but doesn't scroll to the anchor, it stays at the top.

Up until 1.5.8 (which was there when I noticed the problem), it actually tried to show a page named InstalacionesConfiguraciones%23DreamHost or rather InstalacionesConfiguraciones#DreamHost''' (that is, it showed the new page creation page and, if you created it, it showed that page), so we do have some progress in 1.6.0, but it's still not right (IMHO).

Component selection

  • general

Details

MoinMoin Version

1.6.0

OS and Version

Debian Sarge

Python Version

2.5.1 (r251:54863, Jun 29 2007, 23:13:48) [GCC 3.3.5 (Debian 1:3.3.5-13)]

Server Setup

wiki farm within home directory, as explained in http://wiki.dreamhost.com/MoinMoin#Alternative_instructions_based_on_Unix_account_setup_and_a_newer_version_of_Python (and later upgraded to 1.6.0)

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Spanish

It also happened with 1.5.8 (only worse).

Workaround

Couldn't find any :-(

Discussion

Plan


CategoryFeatureImplemented

MoinMoin: FeatureRequests/RedirectingToAnAnchor (last edited 2009-01-29 08:15:01 by ThomasWaldmann)