-
Notifications
You must be signed in to change notification settings - Fork 630
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
Trailing slash in files with addTrailingSlashesToUrls
#3123
Comments
It's done in core, I'm just not sure if its intended behavior or not. I’d think it would not add the trailing slash if the URL ends in a file extension? |
I suppose we could make that happen. |
@brandonkelly I can just trim it myself too; I guess I'm just confused about what the expected behavior would be here? |
As of the next release the expected behavior is to not add a slash for |
Awesome, thanks! |
@brandonkelly: no pressure, just wondering if there's an ETA for this? It's hurting SEO because the image URLs also have the trailing slash resulting in a 404. |
@XhmikosR I can make a fix for you that will take care of this in the interim if needs be. |
@khalwat: if it's going to take a long time, we could use a workaround for sure. If it's going to take like a couple of days, not worth going through the trouble of releasing a new version and stuff :) Thanks! |
We usually cut releases on Tuesdays, and today is Tuesday. |
Thanks, guys, all good now! |
Description
I originally reported this on nystudio107/craft-seomatic#173 because that's where I noticed it. But judging from @khalwat's comment there, it seems this is done in core.
Steps to reproduce
addTrailingSlashesToUrls
totrue
domain.tld/sitemap.xml
and see that the internal link to the sub-sitemap includes a trailing slash like:https://foo.bar/sitemaps/1/section/pages/1/sitemap.xml/
Additional info
The text was updated successfully, but these errors were encountered: