Skip to content

Support SPDX IDs with Dots in License URL Paths #219

@anastas10s-afk

Description

@anastas10s-afk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions