Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Astro.canonicalURL is deprecated #4

Open
ojharr opened this issue Jul 2, 2023 · 0 comments
Open

Error: Astro.canonicalURL is deprecated #4

ojharr opened this issue Jul 2, 2023 · 0 comments

Comments

@ojharr
Copy link

ojharr commented Jul 2, 2023

Cloned the repo and tried to run but kept getting this error.

08:07:06 p.m. [deprecation] Astro.canonicalURL is deprecated! Use Astro.url instead.
Example:


const canonicalURL = new URL(Astro.url.pathname, Astro.site);

Wasn't sure if replacing every instance of Astro.canonicalURL with Astro.url may do the trick.

But there were a few instances of the deprecated code. So I figured I'd create an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant