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 d5bb8c7 commit 748c4b7Copy full SHA for 748c4b7
src/services/browser/BrowserSession.ts
@@ -308,7 +308,8 @@ export class BrowserSession {
308
private getRootDomain(url: string): string {
309
try {
310
const urlObj = new URL(url)
311
- return urlObj.host // Returns hostname with port if present
+ // Remove www. prefix if present
312
+ return urlObj.host.replace(/^www\./, "")
313
} catch (error) {
314
// If URL parsing fails, return the original URL
315
return url
0 commit comments