WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Should URLs be in camel case like hash tags?

for

From: Rowan @ Jetboy
Date: Nov 30, 2022 7:46AM


Most web servers are case sensitive, so:

https://mywebsite.com/pageInCamelCase/

https://mywebsite.com/pageincamelcase/

would effectively be two distinct URLs. The first would return the page
the user wanted. The second would 404. So any advantage in legibility
would be offset by the requirement to get the capitalization right, for
both the user and your developers. You could setup redirect rules, or
allow duplicate pages to be served, but I'd advise not creating the
problem in the first place and sticking with all lowercase, separated by
hyphens (as Daniel advises).

On 30/11/2022 11:27, Barry via WebAIM-Forum wrote:
> I know the best practice with hash tags, but cannot find anything useful on
> whether or not to camel case URLs for a11y.
>
>
>
> Incidentally, is there a WCAG to support camel case hash tags?
>
>
>
> Thanks in anticipation.
>
>
>
> Cheers
>
>
>
> Barry
>
> > > >