mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
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
|
||||
if tcf && tcf['import_id']
|
||||
node_id = tcf['import_id'][/nid:(\d+)/, 1]
|
||||
slug = "/topic/#{node_id}"
|
||||
slug = "/node/#{node_id}"
|
||||
Permalink.create(url: slug, topic_id: topic.id)
|
||||
end
|
||||
rescue => e
|
||||
|
|
Loading…
Reference in New Issue
Block a user