Isn't "_" allowed in URL encoding?

Created on 22 July 2024, about 2 months ago
Updated 23 July 2024, about 2 months ago

Problem/Motivation

I may be wrong, but I don't think Drupal has special handling of the underscore "_" in URLs, so why don't allow it in list keys?
It's also nice looking.. 🙃

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

🇮🇹Italy kopeboy Mainland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • 🇪🇸Spain marcoscano Barcelona, Spain

    While allowed, it's a best practice to avoid underscores in URLs. There's plenty of documentation on the internet on the reasons for that, I believe the one more widely accepted is that Google won't parse words separated by underscores, while it will if they are separated by hyphens.

    If that's important to you, you can always bypass the validation with the hook and implement your own validation that allows underscores...

Production build 0.71.5 2024