mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user