diff --git a/src/Plugin/Block/WorldMapBlock.php b/src/Plugin/Block/WorldMapBlock.php
index 2680235..4e6e5f7 100644
--- a/src/Plugin/Block/WorldMapBlock.php
+++ b/src/Plugin/Block/WorldMapBlock.php
@@ -191,9 +191,7 @@ class WorldMapBlock extends BlockBase {
       '#theme' => 'worldmap',
       '#config' => $config,
       '#map_data' => $map_data,
-      '#module_url' => file_create_url(
-        drupal_get_path('module', 'worldmap')
-      ),
+      '#module_url' => \Drupal::service('file_url_generator')->generateAbsoluteString(\Drupal::service('extension.list.module')->getPath('worldmap')),
       '#plugin_id' => $this->getPluginId(),
       '#attached' => [
         'library' => [
diff --git a/worldmap.info.yml b/worldmap.info.yml
index 7602e5e..8b75e13 100644
--- a/worldmap.info.yml
+++ b/worldmap.info.yml
@@ -1,7 +1,7 @@
 name: World Map
 type: module
 description: 'Adds a configurable SVG-based World map as a block'
-core_version_requirement: ^8.8 || ^9
+core_version_requirement: ^9.3 || ^10
 package: Worldmap
 version: VERSION
 
