- Issue created by @kdborg@gmail.com
- Assigned to Grevil
- 🇩🇪Germany Anybody Porta Westfalica
Thanks!
@Grevil could you take a look for the reasons? Do we have an issue for this already?
I'm setting up a PWA using this module in a Drupal 9.5.11 site. The site has English and French pages. English is the default language and has no prefix. The French pages are detected with a URL prefix (/fr).
When I add the French paths in the "URLs to cache on install" section of the service worker, I get the error 'Error "@page" URL to Cache is a 404.'
Figure out why the $url->isRouted() on line 95 of the ServiceWorkerConfigurationForm is returning FALSE or check URL aliases for a language prefix and a path alias. Line 95 in the 2.1.0-beta: if (isset($url) && !$url->isRouted()) {
Currently, I've changed line 95 of the ServiceWorkerConfigurationForm to be:
if (isset($url) && !$url->toString()) {
This allows the French pages to be crawled.
Figure out a solution.
None.
None.
None.
Active
2.1
Code
Thanks!
@Grevil could you take a look for the reasons? Do we have an issue for this already?