We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21816e8 commit f738763Copy full SHA for f738763
src/components/search/index.tsx
@@ -70,7 +70,9 @@ const config = isDeveloperDocs ? developerDocsSites : userDocsSites;
70
const search = new SentryGlobalSearch(config);
71
72
function relativizeUrl(url: string) {
73
- return url.replace(/^(https?:\/\/docs\.sentry\.io)(?=\/|$)/, '');
+ return isDeveloperDocs
74
+ ? url
75
+ : url.replace(/^(https?:\/\/docs\.sentry\.io)(?=\/|$)/, '');
76
}
77
78
type Props = {
0 commit comments