Support URLs containing slashes
See original GitHub issueCurrently the plugin assumes that all Strapi pages are at the root of the site. URLs like https://my-site.com/articles/my-strapi-article-1
are not supported because the UID field used in the sitemap doesn’t allow slashes. Custom entries have the same problem. I had a go at a solution here that adds an area
property to the settings for both custom and collection entries. Let me know what you think.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Using a Slash Character in Spring URLs - Baeldung
In this tutorial, we'll show some common solutions and recommendations for handling URLs with slashes in Spring.
Read more >escaping - slashes in url variables - Stack Overflow
I am wondering if there is anyway to prevent this from happening? Do I need to use a function that replaces slashes in...
Read more >Trailing Slashes in URLs – What is the Preferred Style?
With the trailing slash, the server assumes that the request is a directory and not a file. The result will either be a...
Read more >To slash or not to slash | Google Search Central Blog
Different content on slash and non-slash URLs is okay for Google, ... Historically, it's common for URLs with a trailing slash to indicate...
Read more >Forward and Backslashes in URLs - zzz.buzz
Two slashes ( // ): This is required by some schemes and not required by some others. In the case of URL, there...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That should not be an issue anymore because I’ve altered the regex of the UID field to allow slashes. That said: I want to add a couple more things before making a new release to npm. Next release will likely be somewhere at the start of next week.
Agreed it would be more useful to allow this in UID field. I’ve put up a PR, feel free to amend as needed.