fix: Remove remaining emailMarketing references from pluginHolder/views.py

Remove emailMarketing manage_url assignments that were left after
skipping the plugin. These were causing issues.
This commit is contained in:
master3395
2026-01-26 03:12:50 +01:00
parent db7bc3791a
commit f9573d9155

View File

@@ -194,10 +194,7 @@ def installed(request):
else:
# Default: try /plugins/{plugin_dir}/settings/ or /plugins/{plugin_dir}/
# Only set if plugin is installed (we can't know if the URL exists otherwise)
# Special handling for emailMarketing
if plugin == 'emailMarketing':
data['manage_url'] = '/emailMarketing/'
elif os.path.exists(completePath):
if os.path.exists(completePath):
# Check if settings route exists, otherwise use main plugin URL
settings_route = f'/plugins/{plugin}/settings/'
main_route = f'/plugins/{plugin}/'
@@ -361,10 +358,6 @@ def installed(request):
data['manage_url'] = url_elem.text
else:
# Default to /plugins/{plugin}/ for regular plugins
# Special handling for emailMarketing
if plugin == 'emailMarketing':
data['manage_url'] = '/emailMarketing/'
else:
# Default to main plugin route (most plugins work from main route)
data['manage_url'] = f'/plugins/{plugin}/'