Update routes to use query params, fix caching

This commit is contained in:
Ben Goldsworthy 2022-10-20 15:53:32 +00:00
parent 1cf3c3004b
commit 3e62eb8d37
2 changed files with 20 additions and 29 deletions

View file

@ -65,8 +65,8 @@
</li>
@endforeach
</ol>
@if ($trip->is_active)
<p><a id="allCheckinsLink" href="#">Show all checkins</a></p>
@if (!$showAllCheckins)
<p><a id="allCheckinsLink" href="?show=all">Show all checkins</a></p>
@endif
</section>
</main>
@ -141,11 +141,6 @@
).addTo(map).setZIndexOffset(1000);
currLocation.bindPopup('<p>Current location</p>').openPopup();
/*
* Add all checkins link href.
*/
document.getElementById("allCheckinsLink").href = window.location.pathname + '/all';
/*
* Changes the currently-selected popup.
*/