Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support SPDX IDs with Dots in License URL Paths #219

Copy link
Copy link
@anastas10s-afk

Description

@anastas10s-afk
Issue body actions

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.
Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.