wikihelp: Redirect directly to the right location (div/span id) in the page.

This commit is contained in:
Jan Holesovsky
2010-12-17 16:20:31 +01:00
parent dc05049e1b
commit 1c00a01712

View File

@ -451,7 +451,8 @@ class Bookmark(ElementBase):
global redirects
# first of all, we need to create a redirect page for this one
if self.redirect != '' and self.target != '':
redirects.append([self.app, self.redirect, self.target, \
redirects.append([self.app, self.redirect, \
'%s#%s'% (self.target, self.id), \
self.authoritative])
# then we also have to setup ID inside the page