We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This rules is not working correctly :
'sitemap_<siteId:\d>_<type:(entry|product|category)>_<sectionId:\d>_<handle:.*>.xml' => 'seo-fields/sitemap/detail'
src/craftCMS/vendor/studioespresso/craft-seo-fields/src/SeoFields.php (line 216)
Working : http://.../sitemap_1_entry_4_about_single.xml Not working : http://.../sitemap_1_entry_10_careers_channel.xml
The problem is the (:\d) regex symbol. You need to use (:\d+) because siteId and sectionid param can have more than one digit.
I fix it by overriding the rules inside our project module.
$event->rules = array_merge($event->rules, [ 'sitemap_<siteId:\d+>_<type:(entry|product|category)>_<sectionId:\d+>_<handle:.*>.xml' => 'seo-fields/sitemap/detail' ]);
But it's not ideal to have to override this plugin route.
Can you fix it please ?
The text was updated successfully, but these errors were encountered:
Yes, I'll put out a release tonight!
Sorry, something went wrong.
ce1b165
Fixed 1.0.3.
No branches or pull requests
This rules is not working correctly :
Working : http://.../sitemap_1_entry_4_about_single.xml
Not working : http://.../sitemap_1_entry_10_careers_channel.xml
The problem is the (:\d) regex symbol. You need to use (:\d+) because siteId and sectionid param can have more than one digit.
I fix it by overriding the rules inside our project module.
But it's not ideal to have to override this plugin route.
Can you fix it please ?
The text was updated successfully, but these errors were encountered: