Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Fix browser back button
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed Jul 8, 2021
1 parent f87df98 commit 4fd31cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards-notebooks/public/components/notebook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ export class Notebook extends Component<NotebookProps, NotebookState> {
configureViewParameter(id: string) {
const url = new URL(window.location);
url.searchParams.set('view', id);
window.history.pushState({}, '', url);
window.history.replaceState({}, '', url);
}

componentDidMount() {
Expand Down

0 comments on commit 4fd31cd

Please sign in to comment.