Comments (6)
Agreed it would be more useful to allow this in UID field. I've put up a PR, feel free to amend as needed.
from strapi-plugin-sitemap.
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.
from strapi-plugin-sitemap.
This looks great. I was kind of hoping that this 'prefix' feature would be added to the UID field type directly. Nonetheless this adds a lot of value to the plugin. I'll test it out. Could you create a PR?
from strapi-plugin-sitemap.
I made a couple of changes, most primarily:
- The regex for the custom entry slug field allows '/', which makes the area field here redundant.
- The area field is now an InputUID component (just like slug) to prevent incorrect input.
See #9
from strapi-plugin-sitemap.
Nice job, thanks for fixing. The only issue I see with making the area field a UID too is if a URL path needs multiple slashes eg https://my-site.com/articles/help/my-strapi-help-article1
(probably more likely for custom entries). Not my use case though, so this fix should unblock us.
from strapi-plugin-sitemap.
Fixed in v1.1.2 (https://github.com/boazpoolman/strapi-plugin-sitemap/releases/tag/1.1.2)
Thanks for the work :)
from strapi-plugin-sitemap.
Related Issues (20)
- Update dependencies to mitigate vulnerabilities HOT 1
- Not working with strapi 4.11.5 HOT 2
- Support excluding sites by condition HOT 2
- how to exclude a specific url for sitemap HOT 9
- Allow URL translation sets for custom URLs HOT 2
- How to combine multiple content-types? HOT 2
- Server.js configuration for the sitemap plugin HOT 12
- Error when generating sitemap on Strapi 4.14.4 and Node v18 HOT 2
- Multiple hostnames/host profiles HOT 1
- Critical dependency: the request of a dependency is an expression HOT 5
- Allow relational fields be declared in url patern recursively HOT 3
- Bug: excludedTypes config setting doesn't seem to work HOT 5
- Bug: missing settings labels HOT 5
- Make the <xhtml:link> element in XML optional HOT 1
- feature request: pretty print option HOT 6
- Feature Request: i18n `prefix_except_default` strategy HOT 8
- Sitemap Breaks When Exceeding Limit and Strapi Port Differs from Default HOT 4
- Add an additional link tag with hreflang x-default to improve locale detection fallback HOT 5
- Does not work with ADMIN_PATH and STRAPI_ADMIN_BACKEND_URL HOT 1
- Add extension points / hooks. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi-plugin-sitemap.