score:1

Accepted answer

the dot in ./config.js denotes a url relative to the current path. i.e. a document served from /profile/profileid will request the file /profile/profileid/config.js - which doesn't exist.

to specify that a partial url always be from the root, you should omit the dot.

<script src="/config.js"></script>

Related Query

More Query from same tag