SEO default location for origin
This commit is contained in:
parent
2657a77a56
commit
a34edbbe3e
1 changed files with 3 additions and 0 deletions
|
|
@ -80,6 +80,9 @@
|
|||
try {
|
||||
return new URL(baseUrl).origin;
|
||||
} catch {
|
||||
// This handles a weird case where Vite's base path is
|
||||
// reset to './' after the app hydrates...
|
||||
if (typeof window !== 'undefined') return getOrigin(window.location.href);
|
||||
return '';
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue