Update routes to use query params, fix caching
This commit is contained in:
parent
1cf3c3004b
commit
3e62eb8d37
2 changed files with 20 additions and 29 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue