chore: add canonical to the document via PageWrapper (#8639)
* add canonical to the document via `PageWrapper` * use WEBSITE_URL constant to create the canonical url value --------- Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Efraín Rochín <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
4 files changed
+38
-7
No files matched your search
@@ -4,6 +4,7 @@ type BrowserInfo = {
|
||||
referrer: string;
|
||||
title: string;
|
||||
query: string;
|
||||
origin: string;
|
||||
};
|
||||
|
||||
export const getBrowserInfo = (): Partial<BrowserInfo> => {
|
||||
@@ -16,5 +17,6 @@ export const getBrowserInfo = (): Partial<BrowserInfo> => {
|
||||
referrer: window.document?.referrer ?? undefined,
|
||||
title: window.document.title ?? undefined,
|
||||
query: window.document.location?.search,
|
||||
origin: window.document.location?.origin,
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user