Skip to content

Commit

Permalink
fix: skip relativizing urls on dev docs (#11527)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Oct 9, 2024
1 parent 21816e8 commit f738763
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ const config = isDeveloperDocs ? developerDocsSites : userDocsSites;
const search = new SentryGlobalSearch(config);

function relativizeUrl(url: string) {
return url.replace(/^(https?:\/\/docs\.sentry\.io)(?=\/|$)/, '');
return isDeveloperDocs
? url
: url.replace(/^(https?:\/\/docs\.sentry\.io)(?=\/|$)/, '');
}

type Props = {
Expand Down

0 comments on commit f738763

Please sign in to comment.