Skip to content

Commit 6c0286e

Browse files
committed
fix url in browser bug
1 parent 40a8fbf commit 6c0286e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egsim/app/templates/egsim.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
methods: {
180180
setUrlInBrowser(menu){
181181
var location = window.location;
182-
if (!location.pathname.startsWith(`/${menu}`)){
182+
if ((location.pathname != `/${menu}`) && (location.pathname != `/${menu}/`)){
183183
var newHref = `${location.origin}/${menu}`
184184
// https://developer.mozilla.org/en-US/docs/Web/API/History_API
185185
window.history.replaceState({}, document.title, newHref);

0 commit comments

Comments
 (0)