Generate {tag}-style links on pages correctly. Fixes #1513

This commit is contained in:
Elana Hashman 2015-01-02 00:03:18 -07:00
commit 49668f711a
4 changed files with 65 additions and 7 deletions

View file

@ -257,9 +257,9 @@ class Content(object):
'limit_msg': ("Other resources were not found "
"and their urls not replaced")})
elif what == 'category':
origin = Category(path, self.settings).url
origin = '/'.join((siteurl, Category(path, self.settings).url))
elif what == 'tag':
origin = Tag(path, self.settings).url
origin = '/'.join((siteurl, Tag(path, self.settings).url))
# keep all other parts, such as query, fragment, etc.
parts = list(value)