Skip to content

Commit f42989f

Browse files
committed
Update navigation config file paths to use MEDIA_ROOT
1 parent ffb3aea commit f42989f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qgis-app/plugins/templatetags/plugin_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def get_navigation_config_url():
218218
)
219219
# Path to the new file with variables replaced
220220
new_path = os.path.join(
221-
settings.SITE_ROOT, "static", "config", "navigation_rendered.json"
221+
settings.MEDIA_ROOT, "navigation_rendered.json"
222222
)
223223

224224
# Read the original file
@@ -244,5 +244,5 @@ def get_navigation_config_url():
244244

245245
# Return the URL to the new file
246246
return os.path.join(
247-
settings.DEFAULT_PLUGINS_SITE, "static", "config", "navigation_rendered.json"
247+
settings.DEFAULT_PLUGINS_SITE, "media", "navigation_rendered.json"
248248
)

0 commit comments

Comments
 (0)