Skip to content

History service improvements [Closes #908]#910

Open
rpulkka wants to merge 1 commit intodevelopmentfrom
fix-history-service-908
Open

History service improvements [Closes #908]#910
rpulkka wants to merge 1 commit intodevelopmentfrom
fix-history-service-908

Conversation

@rpulkka
Copy link
Contributor

@rpulkka rpulkka commented Feb 24, 2026

Closes: #908
Branch: https://807.dev.laji.fi/project/MHL.1166/form/MHL.1166/places?activeNP=MNP.56680

On addresses with replaceUrl (meaning that only the latest query param change should be saved to history) there was an issue that the first visit to the replaceUrl didn't get saved. So reload on a replaceUrl page with params -> going to another page -> coming back would lose query params and now it doesn't because of this if case: if (this.router.currentNavigation()?.extras.replaceUrl)

Also, the confusing hasBack variable was replaced with isInitialLoad to check the situation where user loads the first page on the first time. Note that /user, /login and /logout paths are also now considered in isInitialLoad which makes home-data.service use cache-first on them as well, unlike the earlier no-cache. getPrevious was deleted as we can use browserService.goBack in onDocumentDeleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix np-selection not returning to the selected named place

1 participant