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:
authored and GitHub committed 2023-06-02 18:28:03 +00:00
1 parent 8ad513e4ec
commit 174c730f1f
4 files changed
+38 -7

No files matched your search

+2
View File
@@ -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,
};
};