-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Summary:
License URLs to use SPDX identifiers, which contain dots (e.g., /license/apache-2.0), rather than WordPress’s default approach of replacing dots with dashes (/license/apache-2-0).
- Example:
https://opensource.org/license/apache-2.0 - Reference SPDX IDs: https://spdx.org/licenses/
Background:
WordPress by default strips dots from URL slugs to avoid conflicts, as dots typically indicate file extensions. Overriding this is technically possible (e.g., with Permalink Manager or a custom function), but it comes with caveats.
Risks/Considerations:
- Dots in URLs may be interpreted by web servers, CDNs (e.g., Cloudflare), or caching layers as file extensions, potentially causing issues with content serving, caching, SEO, or site reliability.
- Future WP updates may change how slugs are sanitized, introducing possible breakage.
- Override would be non-standard (against WP default behavior).
Request / Next Steps:
- The technical risk is understood, but SPDX IDs with dots for canonical URLs would be preferred if possible.
- Plan: We can do some tests in staging first using a custom lightweight
sanitize_titlefunction to allow slugs to retain dots.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels