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 88f685a commit 0f450aeCopy full SHA for 0f450ae
webview-ui/src/utils/docLinks.ts
@@ -8,5 +8,7 @@
8
export function buildDocLink(path: string, campaign: string): string {
9
// Remove any leading slash from path
10
const cleanPath = path.replace(/^\//, "")
11
- return `https://docs.roocode.com/${cleanPath}?utm_source=extension&utm_medium=ide&utm_campaign=${encodeURIComponent(campaign)}`
+ const [basePath, hash] = cleanPath.split("#")
12
+ const baseUrl = `https://docs.roocode.com/${basePath}?utm_source=extension&utm_medium=ide&utm_campaign=${encodeURIComponent(campaign)}`
13
+ return hash ? `${baseUrl}#${hash}` : baseUrl
14
}
0 commit comments