Skip to content

Commit

Permalink
LA-248 Change current path after adding a new system (#5701)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucanovera authored Jan 27, 2025
1 parent a51da8f commit a5f3b49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Changes can also be flagged with a GitHub label for tracking purposes. The URL o

### Fixed
- Updating mongodb connectors so it can support usernames and password with URL encoded characters [#5682](https://github.com/ethyca/fides/pull/5682)
- After creating a new system, the url is now updated correctly to the new system edit page [#5701](https://github.com/ethyca/fides/pull/5701)


## [2.53.0](https://github.com/ethyca/fides/compare/2.52.0...2.53.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import {
useIsAnyFormDirty,
} from "~/features/common/hooks/useIsAnyFormDirty";
import { useSystemOrDatamapRoute } from "~/features/common/hooks/useSystemOrDatamapRoute";
import { INTEGRATION_MANAGEMENT_ROUTE } from "~/features/common/nav/v2/routes";
import {
EDIT_SYSTEM_ROUTE,
INTEGRATION_MANAGEMENT_ROUTE,
} from "~/features/common/nav/v2/routes";
import {
DEFAULT_TOAST_PARAMS,
errorToastParams,
Expand Down Expand Up @@ -146,6 +149,11 @@ const useSystemFormTabs = ({
setShowSaveMessage(true);
}
dispatch(setActiveSystem(system));
router.push({
pathname: EDIT_SYSTEM_ROUTE,
query: { id: system.fides_key },
});

const toastParams = {
...DEFAULT_TOAST_PARAMS,
description: (
Expand Down

0 comments on commit a5f3b49

Please sign in to comment.