Skip to content

Commit

Permalink
Merge pull request #426 from marko-bekhta/fix/do-not-reset-hash-if-no…
Browse files Browse the repository at this point in the history
…-query-data

Do not reset link hash if no query data read from the url
  • Loading branch information
yrodiere authored Feb 25, 2025
2 parents d1f18dd + e574954 commit bca79fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/web/app/qs-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class QsForm extends LitElement {
this._initialQueryStringPresent = false;
this._handleInputChange(null);
}
window.location.hash = this._browserData ? (new URLSearchParams(this._browserData)).toString() : '';
window.location.hash = this._browserData ? (new URLSearchParams(this._browserData)).toString() : window.location.hash;
if (!this._backendData) {
this._clearSearch();
} else {
Expand Down

0 comments on commit bca79fc

Please sign in to comment.