fix: preserve territorial search across investment catalogues
This commit is contained in:
@@ -5,6 +5,7 @@ import ParkDetailsEditor, {
|
||||
} from '@/components/investment-zone-operational-details';
|
||||
import { Link, router, useForm, usePage } from '@inertiajs/react';
|
||||
import { catalogueReturnHref } from '@/lib/catalogue-context';
|
||||
import { searchTerritoryHref } from '@/lib/search-territory';
|
||||
import InvestmentTerritory from '@/components/investment-territory';
|
||||
import InvestmentMapPanel from '@/components/investment-map-panel';
|
||||
import {
|
||||
@@ -1772,7 +1773,7 @@ function Editor({
|
||||
<p key={o.id}>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/oportunidades/${o.slug}?zone_id=${z.id}`}
|
||||
href={searchTerritoryHref(`/oportunidades/${o.slug}?zone_id=${z.id}`, pageUrl)}
|
||||
>
|
||||
{o.title}
|
||||
</Link>
|
||||
@@ -1829,7 +1830,7 @@ function Editor({
|
||||
<p key={r.id}>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/carteira/${r.id}`}
|
||||
href={searchTerritoryHref(`/carteira/${r.id}`, pageUrl)}
|
||||
>
|
||||
{r.title}
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user