Skip to content

Commit

Permalink
added a FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 14, 2015
1 parent 7233a4c commit a71edbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nikola/plugins/command/import_wordpress.py
Expand Up @@ -170,7 +170,12 @@ def show_info_about_mising_module(modulename):
# Add tag redirects
for tag in self.all_tags:
tag = utils.slugify(tag.decode('utf8'))
self.url_map['{}tag/{}'.format(self.context['SITE_URL'], tag)] = self.context['SITE_URL'] + 'categories/' + tag + '.html'
src_url = '{}tag/{}'.format(self.context['SITE_URL'], tag)
# FIXME: this should check for PRETTY_URLs in existing config
# probably reading that belongs in the Mixin
if True:
dst_url = self.context['SITE_URL'] + 'categories/' + tag + '.html'
self.url_map[src_url] = dst_url

self.write_urlmap_csv(
os.path.join(self.output_folder, 'url_map.csv'), self.url_map)
Expand Down

0 comments on commit a71edbd

Please sign in to comment.