question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support URLs containing slashes

See original GitHub issue

Currently 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.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
boazpoolmancommented, Jul 1, 2020

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.

1reaction
mattwcolecommented, Jun 25, 2020

Agreed it would be more useful to allow this in UID field. I’ve put up a PR, feel free to amend as needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found