LibWeb: Set filename of module scripts to full URL instead of basename by Lubrsi · Pull Request #5678 · LadybirdBrowser/ladybird

1 min read Original article ↗

@Lubrsi

Atlassian login gets the base URL for its module scripts by throwing an
error and pulling out the current script's URL from error.stack with
regex.

Since we only returned a basename for module scripts, it would fail to
match and try and use `/` as a base URL (because it does
[matched_string] + "/"), which is not a valid base URL.