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

Offer an option to automatically chop the .html off of canonical URLs #501

Open
hakanai opened this issue Feb 7, 2024 · 0 comments
Open

Comments

@hakanai
Copy link

hakanai commented Feb 7, 2024

Leaf pages on my site come out in the metadata as follows:

<link rel="canonical" href="https://mysite.name//external-resources.html" />

I'd prefer to omit the .html from all these. I know I can manually set canonical_url for all my pages, but that would introduce a new problem where if I ever rename a page, I have to manually edit canonical_url to keep it in sync.

I'm not sure that everyone would prefer to remove the .html, though, so I guess it should be a site option.

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