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

Sitemap functionality does not support locale fallback #64

Open
peterjaap opened this issue Jun 24, 2022 · 0 comments
Open

Sitemap functionality does not support locale fallback #64

peterjaap opened this issue Jun 24, 2022 · 0 comments

Comments

@peterjaap
Copy link
Contributor

peterjaap commented Jun 24, 2022

Right now, the sitemap functionality does not fetch documents from the locale fallback if one is configured;

https://github.com/elgentos/magento2-prismicio/blob/master/Model/ItemProvider/PrismicPages.php#L73

To fix this, we need to run two queries; one for the original locale, followed by the fallback locale but excluding the already found document ID's using the first query.

Maybe we can use \Elgentos\PrismicIO\Model\Api::getDocumentByUid

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

No branches or pull requests

1 participant