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
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).
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_title function to allow slugs to retain dots.
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).https://opensource.org/license/apache-2.0Background:
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:
Request / Next Steps:
sanitize_titlefunction to allow slugs to retain dots.