FIX: change drupal permalink creation to use /node/
Drupal URL scheme for nodes begins with `/node/` , not `/topic/` .
This commit is contained in:
parent
4c037b9ba3
commit
cc5b4cd49a
|
@ -413,7 +413,7 @@ class ImportScripts::Drupal < ImportScripts::Base
|
||||||
tcf = topic.custom_fields
|
tcf = topic.custom_fields
|
||||||
if tcf && tcf['import_id']
|
if tcf && tcf['import_id']
|
||||||
node_id = tcf['import_id'][/nid:(\d+)/, 1]
|
node_id = tcf['import_id'][/nid:(\d+)/, 1]
|
||||||
slug = "/topic/#{node_id}"
|
slug = "/node/#{node_id}"
|
||||||
Permalink.create(url: slug, topic_id: topic.id)
|
Permalink.create(url: slug, topic_id: topic.id)
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
|
|
Loading…
Reference in New Issue