From 48ebfc79b27a90810010dd2545eace764ed36d91 Mon Sep 17 00:00:00 2001 From: master3395 Date: Sun, 15 Feb 2026 23:06:03 +0100 Subject: [PATCH] pluginHolder/urls: register plugin routes before catch-all so /plugins//settings/ match --- pluginHolder/urls.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pluginHolder/urls.py b/pluginHolder/urls.py index a9324815d..c76049d98 100644 --- a/pluginHolder/urls.py +++ b/pluginHolder/urls.py @@ -95,12 +95,9 @@ urlpatterns = [ path('api/store/upgrade//', views.upgrade_plugin, name='upgrade_plugin'), path('api/backups//', views.get_plugin_backups, name='get_plugin_backups'), path('api/revert//', views.revert_plugin, name='revert_plugin'), - path('/help/', views.plugin_help, name='plugin_help'), ] -# Dynamically include each installed plugin's URLs so /plugins//settings/ etc. work. -# Include every plugin found on disk (INSTALLED_PLUGINS_PATH or PLUGIN_SOURCE_PATHS) so plugin -# pages work even if the app was not added to INSTALLED_APPS (e.g. after git pull overwrote settings). +# Include each installed plugin's URLs *before* the catch-all so /plugins//settings/ etc. match for _plugin_name, _path_parent in _get_installed_plugin_list(): try: if _path_parent not in sys.path: @@ -116,3 +113,5 @@ for _plugin_name, _path_parent in _get_installed_plugin_list(): ) except Exception: pass + +urlpatterns.append(path('/help/', views.plugin_help, name='plugin_help'))