diff --git a/web/js/pages/TerritoryPage.tsx b/web/js/pages/TerritoryPage.tsx index 40901f1e..c101be19 100644 --- a/web/js/pages/TerritoryPage.tsx +++ b/web/js/pages/TerritoryPage.tsx @@ -22,7 +22,8 @@ const ShareButton = ({congregationId, territoryId, territoryNumber}) => { const togglePopup = async () => { if (!shareUrl) { const url = await shareTerritory(congregationId, territoryId); - setShareUrl(url + '/' + encodeURIComponent(territoryNumber).replaceAll(/%../g, "_")); + // TODO: change "#/" to a "/" after nobody has a cached page older than 2023-07-31, to avoid incompatibility with the old router + setShareUrl(url + '#/' + encodeURIComponent(territoryNumber).replaceAll(/%../g, "_")); } setOpen(!open); }