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

Correctly encode URLs in the sitemap #6148

Merged
merged 6 commits into from Jul 3, 2023

Conversation

aschempp
Copy link
Member

URLs with ampersands are no longer correctly encoded in the new Contao sitemap controller. See isotope/core#2402

They were automatically encoded in Contao 4.9 (https://github.com/contao/contao/blob/4.9/core-bundle/src/Resources/contao/library/Contao/Automator.php#L377-L386), though I'm not exactly sure why that was so complicated 😂

@aschempp aschempp added the bug label Jun 16, 2023
@aschempp aschempp added this to the 4.13 milestone Jun 16, 2023
@aschempp aschempp requested a review from a team June 16, 2023 07:15
@aschempp aschempp self-assigned this Jun 16, 2023
@aschempp aschempp requested a review from fritzmg June 19, 2023 09:03
fritzmg
fritzmg previously approved these changes Jun 19, 2023
Co-authored-by: Martin Auswöger <martin@auswoeger.com>
Copy link
Member

@ausi ausi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$encoding can be removed again I think as it is no longer used.

Apart from that, approved ✅

core-bundle/src/Controller/SitemapController.php Outdated Show resolved Hide resolved
core-bundle/src/Controller/SitemapController.php Outdated Show resolved Hide resolved
core-bundle/src/Resources/config/controller.yml Outdated Show resolved Hide resolved
aschempp and others added 2 commits June 28, 2023 11:34
Co-authored-by: Martin Auswöger <martin@auswoeger.com>
Co-authored-by: Martin Auswöger <martin@auswoeger.com>
Toflar
Toflar previously approved these changes Jun 28, 2023
ausi
ausi previously approved these changes Jun 28, 2023
@leofeyer leofeyer dismissed stale reviews from ausi and Toflar via 6079992 July 3, 2023 14:48
@leofeyer leofeyer merged commit fc3f4c3 into contao:4.13 Jul 3, 2023
17 checks passed
@leofeyer
Copy link
Member

leofeyer commented Jul 3, 2023

Thank you @aschempp.

leofeyer pushed a commit that referenced this pull request Jul 7, 2023
Description
-----------

#6148 for the sitemap event.

Commits
-------

9caa73f Correctly encode sitemap.xml in event
leofeyer pushed a commit to contao/core-bundle that referenced this pull request Jul 7, 2023
Description
-----------

contao/contao#6148 for the sitemap event.

Commits
-------

9caa73f5 Correctly encode sitemap.xml in event
@aschempp aschempp deleted the fix/sitemap-encoding branch July 11, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants