Skip to content

Commit

Permalink
Encode dashboard url state only once (#4264)
Browse files Browse the repository at this point in the history
* Encode dashboard url state only once

* Remove console.log
  • Loading branch information
AdityaHegde authored Mar 15, 2024
1 parent d0cac44 commit ea76651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function gotoNewDashboardUrl(url: URL, newState: string, defaultState: string) {
const newUrl = getUrlForPath(url.pathname, ["features", "theme"]);

if (newState !== defaultState) {
newStateInUrl = encodeURIComponent(newState);
newStateInUrl = newState;
newUrl.searchParams.set("state", newStateInUrl);
}

Expand Down

1 comment on commit ea76651

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.