Skip to content

Commit

Permalink
Corrected case of redirection function #2403.
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Sep 30, 2024
1 parent 2bab9d7 commit 91d39ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ let routes = [
component: Privacy,
},
{
name: "PreservationPolicy",
name: "preservation_policy",
path: "/preservation_policy",
redirect: () => {
window.location.assign(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/router/routes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ describe("Routes", () => {
delete window.location;
window.location = {assign: assignMock};
const redirections = {
PreservationPolicy: '/sustainability_and_preservation',
preservation_policy: '/sustainability_and_preservation',
}

// eslint-disable no-promise-executor-return
Expand Down

0 comments on commit 91d39ce

Please sign in to comment.