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

Allow to set defaults on decorated routes #232

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

yann-eugone
Copy link
Member

This is supposed to fix #228

We noticed that AbstractGenerator is only setting changefreq, lastmod & priority to instances of UrlConcrete.

This is not the expected behavior as all urls can have these xml properties.

With that pull request AbstractGenerator will dive in decorated chain of urls until it find an UrlConcrete (or not) and set these defaults to that url.

Copy link
Contributor

@l-vo l-vo left a comment

Choose a reason for hiding this comment

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

Tested with multiple nested decorators, it seems to work well, thank you very much 🙂🥳

@halundraN
Copy link
Member

👍

@yann-eugone yann-eugone merged commit cc8ed93 into master Mar 2, 2020
@yann-eugone yann-eugone deleted the decorated-urls-defaults branch August 16, 2020 06:57
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.

Configured defaults (changefreq, priority...) are only added on non-decorated url
3 participants