Skip to content

Commit

Permalink
uses relative routes on navigation after edition
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacar committed Jun 13, 2024
1 parent 03b6ca3 commit ab6d239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/react/V2/Routes/Settings/Thesauri/ThesaurusForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const ThesaurusForm = () => {
<Translate>Thesauri added.</Translate>
),
});
navigate(`/settings/thesauri/edit/${savedThesaurus._id}`);
navigate(`../edit/${savedThesaurus._id}`);
} catch (e) {
setNotifications({
type: 'error',
Expand Down Expand Up @@ -286,7 +286,7 @@ const ThesaurusForm = () => {
type: 'success',
text: <Translate>Thesauri updated.</Translate>,
});
navigate(`/settings/thesauri/edit/${savedThesaurus._id}`);
navigate(`../edit/${savedThesaurus._id}`);
}}
onFailure={() => {
setNotifications({
Expand Down

0 comments on commit ab6d239

Please sign in to comment.