You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we use the full URLPattern implementation for routing?
In particular missing the regex groups, makes it impossible to use it to create URLs like this: /directory/sitemap(\\d+).xml. A practical example that we recently stumbled upon was creating a number of sitemaps under the same directory path "/directory/" in this case and having each sitemap contain X amount of urls. Splitting those is necessary for performance reasons as these are going into hundreds.
One would argue to make the directory dynamic like this /:directory/sitemap.xml but that would be against Google's SEO policy that requires you to put the sitemap in the same directory as the pages it is referencing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can we use the full URLPattern implementation for routing?
In particular missing the regex groups, makes it impossible to use it to create URLs like this:
/directory/sitemap(\\d+).xml
. A practical example that we recently stumbled upon was creating a number of sitemaps under the same directory path "/directory/" in this case and having each sitemap contain X amount of urls. Splitting those is necessary for performance reasons as these are going into hundreds.One would argue to make the directory dynamic like this
/:directory/sitemap.xml
but that would be against Google's SEO policy that requires you to put the sitemap in the same directory as the pages it is referencing.Beta Was this translation helpful? Give feedback.
All reactions