summaryrefslogtreecommitdiff
path: root/to-wiki/wikiconv2.py
diff options
context:
space:
mode:
Diffstat (limited to 'to-wiki/wikiconv2.py')
-rwxr-xr-xto-wiki/wikiconv2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py
index 0e3bb5bf9..00d43d2c9 100755
--- a/to-wiki/wikiconv2.py
+++ b/to-wiki/wikiconv2.py
@@ -457,7 +457,7 @@ class Bookmark(ElementBase):
self.app = parser.current_app_raw
self.target = parser.wiki_page_name
self.authoritative = parser.follow_embed
- self.redirect = name
+ self.redirect = name.replace("/", "%2F")
def get_all(self):
global redirects
@@ -1359,7 +1359,7 @@ def write_link(r, target):
def write_redirects():
print 'Generating the redirects...'
written = {}
- # in the first pass, immediately writte the links that are embedded, so that
+ # in the first pass, immediately write the links that are embedded, so that
# we can always point to that source versions
for redir in redirects:
app = redir[0]