From cc5b4cd49a864217805d8eed569e530eebd5c7b1 Mon Sep 17 00:00:00 2001 From: GeckoLinux Date: Fri, 2 Dec 2022 00:03:00 -0500 Subject: [PATCH] FIX: change drupal permalink creation to use /node/ Drupal URL scheme for nodes begins with `/node/` , not `/topic/` . --- script/import_scripts/drupal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/drupal.rb b/script/import_scripts/drupal.rb index 3759bad8e04..2350a4efbf8 100644 --- a/script/import_scripts/drupal.rb +++ b/script/import_scripts/drupal.rb @@ -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