Some changes need to be made to ease the migration from react-router v5 to v6, as documented here.
v5
v6
┆Issue is synchronized with this Jira Task