Skip to content
Permalink
Browse files

added a FIXME

  • Loading branch information
ralsina committed Jun 14, 2015
1 parent 7233a4c commit a71edbde8d29a8bef8f103e819603e54686b5146
Showing with 6 additions and 1 deletion.
  1. +6 −1 nikola/plugins/command/import_wordpress.py
@@ -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)

0 comments on commit a71edbd

Please sign in to comment.