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