We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a8fbf commit 6c0286eCopy full SHA for 6c0286e
egsim/app/templates/egsim.html
@@ -179,7 +179,7 @@
179
methods: {
180
setUrlInBrowser(menu){
181
var location = window.location;
182
- if (!location.pathname.startsWith(`/${menu}`)){
+ if ((location.pathname != `/${menu}`) && (location.pathname != `/${menu}/`)){
183
var newHref = `${location.origin}/${menu}`
184
// https://developer.mozilla.org/en-US/docs/Web/API/History_API
185
window.history.replaceState({}, document.title, newHref);
0 commit comments