FIX: change drupal permalink creation to use /node/

Drupal URL scheme for nodes begins with `/node/` , not `/topic/` .
This commit is contained in:
GeckoLinux 2022-12-02 00:03:00 -05:00 committed by GitHub
parent 4c037b9ba3
commit cc5b4cd49a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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