Skip to content

Commit

Permalink
Merge pull request #950 from cultuurnet/feature/III-6327
Browse files Browse the repository at this point in the history
III-6327- Manage redirects
  • Loading branch information
vhande authored Nov 12, 2024
2 parents aaac73a + 6a95235 commit 6f0d01d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/pages/search/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const Search = () => {
onSelect={handleSelectTab}
activeBackgroundColor={`${udbMainDarkBlue}`}
variant={TabsVariants.OUTLINED}
css={`
.nav-tabs {
margin-left: 1.5rem;
}
`}
>
<Tabs.Tab
eventKey="events-places"
Expand Down
14 changes: 6 additions & 8 deletions src/redirects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,13 @@ const getRedirects = (
destination: '/organizers/:organizerId/ownerships',
permanent: false,
},
publicRuntimeConfig.ownershipEnabled === 'true' && {
source: '/manage/organizations',
destination: '/search?tab=organizers',
permanent: false,
},
publicRuntimeConfig.ownershipEnabled === 'false' && {
source: '/search',
has: [
{
type: 'query',
key: 'tab',
value: 'organizers',
},
],
source: '/search?tab=organizers',
destination: '/404',
permanent: false,
},
Expand Down

0 comments on commit 6f0d01d

Please sign in to comment.