Skip to content

Commit

Permalink
ensure that the base href is set, as it's required when reloading sub…
Browse files Browse the repository at this point in the history
…pages.

fixes #264
  • Loading branch information
AnalogJ committed May 27, 2022
1 parent 12e624a commit b6e6902
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta charset="utf-8">
<title>scrutiny</title>

<script>
document.write(`<base href="${window.location.pathname.split('/web').slice(0, 1)[0]}/web/"/>`);
</script>

<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">

Expand Down

0 comments on commit b6e6902

Please sign in to comment.