Client: Fix incorrect back button behaviour

This commit is contained in:
Andrio Celos
2022-10-14 13:55:26 +11:00
parent 191a2982f7
commit 0b6ddb39b0
2 changed files with 2 additions and 2 deletions

View File

@@ -188,7 +188,7 @@
</div>
<div id="deckListSection" hidden>
<section id="deckEditorDeckListSection">
<a id="deckListBackButton" href="..">Back</a>
<a id="deckListBackButton" href=".">Back</a>
<h3>Deck list</h3>
<div id="deckList">
<button id="newDeckButton">New deck</label>

View File

@@ -24,7 +24,7 @@ deckListBackButton.addEventListener('click', e => {
if (canPushState) {
try {
history.pushState(null, '', '..');
history.pushState(null, '', '.');
} catch {
canPushState = false;
}