Browse Source

fix(frontend): when navigating to a station by id, history should be replaced)

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 years ago
parent
commit
3dbf606516
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/pages/Station/index.vue

+ 1 - 1
frontend/src/pages/Station/index.vue

@@ -1545,7 +1545,7 @@ export default {
 						// change url to use station name instead of station id
 						if (name !== this.stationIdentifier) {
 							// eslint-disable-next-line no-restricted-globals
-							history.pushState({}, null, name);
+							this.$router.replace(name);
 						}
 
 						this.joinStation({