소스 검색

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

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 년 전
부모
커밋
3dbf606516
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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({