From 91d84fcc08ca2192b3f74080faefb5034ba4094c Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 2 Nov 2022 04:35:36 -0500 Subject: [PATCH] Don't change the URL as you scroll around (#119) Fix https://github.com/matrix-org/matrix-public-archive/issues/115 Reverting behavior originally introduced in https://github.com/matrix-org/matrix-public-archive/pull/71 --- shared/viewmodels/ArchiveRoomViewModel.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/shared/viewmodels/ArchiveRoomViewModel.js b/shared/viewmodels/ArchiveRoomViewModel.js index 2e3e0ae..ff56d0d 100644 --- a/shared/viewmodels/ArchiveRoomViewModel.js +++ b/shared/viewmodels/ArchiveRoomViewModel.js @@ -264,14 +264,6 @@ class ArchiveRoomViewModel extends ViewModel { // Update the calendar this._calendarViewModel.setActiveDate(currentTopPositionEventEntry.timestamp); - - // Update the URL - this.history.replaceUrlSilently( - this._matrixPublicArchiveURLCreator.archiveUrlForDate( - this._room.canonicalAlias || this._room.id, - new Date(currentTopPositionEventEntry.timestamp) - ) + window.location.hash - ); } get dayTimestampFrom() {