## page was renamed from MoinMoinBugs/RedirectingToAnAnchor = 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 == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. Put an anchor within a page: '''{{{<>}}}''' (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) 1. 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 == ##Add URL that show the bug, screenshot or test wiki markup that fail... 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). ##attachment:screenshot.png ##{{{ ##Example wiki markup that fail ##}}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * general == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!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 == ## How to deal with the bug until it is fixed Couldn't find any :-( = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: redirects to an anchor on a page was implemented by http://hg.moinmo.in/moin/1.8/rev/6beaf3e083c6 (will be in 1.8.2 later) ---- CategoryFeatureImplemented