Skip to content

Commit

Permalink
Delete /search from the ownership pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Nov 7, 2024
1 parent 0c56fc3 commit 32f93ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/middleware.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ export const middleware = async (request: NextRequest) => {
}

const isOwnershipPage =
(request.nextUrl.pathname.startsWith('/organizer') &&
!request.nextUrl.pathname.endsWith('/ownerships')) ||
request.nextUrl.pathname.startsWith('/search');
request.nextUrl.pathname.startsWith('/organizer') &&
!request.nextUrl.pathname.endsWith('/ownerships');

if (isOwnershipPage) {
const isOwnershipEnabled =
Expand Down

0 comments on commit 32f93ab

Please sign in to comment.