diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-12-17 16:20:31 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-12-17 16:21:13 +0100 |
commit | 1c00a01712d7d1bcbb07a3800f755dcd48cd1da6 (patch) | |
tree | 8ebe28730bf691583b231d6b82bd3ac98ab24074 | |
parent | dc05049e1b33505d0c9820cd5bc4bd3bc4750af9 (diff) |
wikihelp: Redirect directly to the right location (div/span id) in the page.
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index a2acb9424e..f74687b446 100755 --- a/helpcontent2/to-wiki/wikiconv2.py +++ b/helpcontent2/to-wiki/wikiconv2.py @@ -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 |