diff --git a/netbox/extras/migrations/0129_fix_script_paths.py b/netbox/extras/migrations/0129_fix_script_paths.py index de330d75a..88f57634c 100644 --- a/netbox/extras/migrations/0129_fix_script_paths.py +++ b/netbox/extras/migrations/0129_fix_script_paths.py @@ -7,7 +7,10 @@ from extras.storage import ScriptFileSystemStorage def normalize(url): - return url if urlparse(url).path else url + "/" + parsed_url = urlparse(url) + if not parsed_url.path.endswith('/'): + return url + '/' + return url def fix_script_paths(apps, schema_editor):