File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 759759 * window.location = base;
760760 * }
761761 */
762- 'okzzdI+OgeNYCr3oJXDZ/rPI5WwGyiU5V/RwOQrv5zE = ' ,
762+ '/YUD5b5Ze0TEXHUw/Vl3MbJXEKRQ1Hg6jBoeNlyFnec = ' ,
763763
764764 /**
765765 * document.addEventListener("DOMContentLoaded", function(event) {
Original file line number Diff line number Diff line change 2222 const hashMatch = document .location .hash .replace (" #" , " " ).split (" /" );
2323 const albumID = hashMatch[0 ] ?? ' ' ;
2424 const photoID = hashMatch[1 ] ?? ' ' ;
25+ const url = document .querySelector (" base" )? .getAttribute (" href" );
2526
2627 if (photoID !== ' ' ) {
27- window .location = @php
28- echo ' "' . route (' gallery' ). ' /"'
29- @endphp + albumID + ' /' + photoID;
28+ window .location = url + ` /gallery/${ albumID} /${ photoID} ` ;
3029 } else if (albumID !== ' ' ) {
31- window .location = @php
32- echo ' "' . route (' gallery' ). ' /"'
33- @endphp + albumID;
30+ window .location = url + ` /gallery/${ albumID} ` ;
3431 }
3532< / script>
3633@endif
You can’t perform that action at this time.
0 commit comments