Closed SalahAdDin closed 1 month ago
@boazpoolman
From my investigation, I get that fetching the URL patterns always returns an empty array:
It is a problem since the index
requires to get not an empty array of patterns:
if (loading || !patterns.length) {
return (
<Center>
<Loader>{formatMessage({ id: 'webtools.settings.loading', defaultMessage: 'Loading content...' })}</Loader>
</Center>
);
}
Is it intended to be like that? Is there any extra step to add URL patterns?
From the documentation we get that screen is where we define the patterns!
Hello @SalahAdDin , thanks for sending in the bug report. We want to create robust Strapi plug-ins and thus want to help you (and maybe others) with this experience.
Could you provide us with some more information? What are the contents of your wt_url_patterns
table in the database? Maybe it is empty or missing a value?
Thanks for letting us know!
Mathijs
Hi @SalahAdDin, I have tried to reproduce this issue and I can confirm that this is a problem. I'll update the label and we'll take a look at it soon. Hopefully I have informed you sufficiently, if you have any questions you can always contact us.
Kind regards, PluginPal.
This issue has been fixed and released with v1.0.0-beta.12
Bug report
Describe the bug
After setting up both the the sitemap plugins with the core, we want to generate the URL patterns, we go to the screen, and it does not load.
Steps to reproduce the behavior
Expected behavior
We should see the screen available so we can edit the URL patterns.
Screenshots
Code snippets
If applicable, add code samples to help explain your problem.
System
Additional context
I was using an old version of Sitemaps and I defined the URLs also; as there is no migration guide, I didn't migrate anything.