Issue #3460916 by bucefal91: Issues when running in a subfolder
Declare the JS file as "external" library so Drupal core would treat the provided path as a URL, not as a file path relative to module's folder.
Declare the JS file as "external" library so Drupal core would treat the provided path as a URL, not as a file path relative to module's folder.