diff --git a/modules/core/templates/loginuserpass.twig b/modules/core/templates/loginuserpass.twig
index 4ec8bb8352fa410bce6d8528b46db776cd649785..f474a339cfe0b82ec00bdbf8eeafbd7a18de1e0b 100644
--- a/modules/core/templates/loginuserpass.twig
+++ b/modules/core/templates/loginuserpass.twig
@@ -3,7 +3,7 @@
 {% extends "@core/base.twig" %}
 
 {% block postload %}
-    <script src="{{baseurlpath}}assets/js/loginuserpass.js"></script>
+    <script src="/{{baseurlpath}}module.php/core/assets/js/loginuserpass.js"></script>
 {% endblock %}
 
 {% block content %}