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

Make sitemap.xml.gz work in a LinguaPlone environment #8

Merged
merged 2 commits into from
Sep 13, 2012

Conversation

erral
Copy link
Member

@erral erral commented Sep 6, 2012

LinguaPlone deletes Language parameter from the query, so when calling the catalog for the second time it is not present in the parameters so LinguaPlone uses current users language to get the content for the sitemap which is wrong.

More information:

1b03450#L2R44

@davisagli
Copy link
Member

This sounds like a LinguaPlone bug to me...if it needs to modify the query that is passed in, it seems like it should make a copy rather than changing it in place.

@erral
Copy link
Member Author

erral commented Sep 8, 2012

Mmmmm, could be yes. I'll check it.

@erral
Copy link
Member Author

erral commented Sep 8, 2012

It looks like a wanted feature in LinguaPlone, it's in fact tested :O

https://github.com/plone/Products.LinguaPlone/blob/master/Products/LinguaPlone/tests/test_catalog.py#L56

@davisagli
Copy link
Member

Okay, this fix is fine then.

@djowett
Copy link
Contributor

djowett commented Jan 6, 2017

@myroslav this was fixed in plone.app.multilingual in the last few weeks see #92

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

Successfully merging this pull request may close these issues.

4 participants