Skip to content

Commit 4d0b3c1

Browse files
thecrypticacereinink
authored andcommitted
Handle temporary double /plus in search results
1 parent 6f35053 commit 4d0b3c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/search.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function rewriteURL(url: string) {
3333
}
3434

3535
url = url.replace('https://tailwindui.com/', 'https://tailwindcss.com/plus/')
36+
// Temporary thing while `https://tailwindui.com/` is rewritten to /plus
37+
url = url.replace('/plus/plus/', '/plus/')
3638
url = url.replace('/plus/components', '/plus/ui-blocks')
3739
url = url.replace('/plus/templates/catalyst', '/plus/ui-kit')
3840
url = url.replace('/plus/all-access', '/plus/#pricing')

0 commit comments

Comments
 (0)