Links with # in directory (eg, Twitter) are classed as not valid

Created on 22 January 2011, about 14 years ago
Updated 1 January 2025, 3 months ago

I was trying to add twitter links to my site, these are now in the format http://twitter.com/#!/profilename. However, these are being flagged as not valid. After a bit of digging round, I found the problem seemed to be with line 742 in link.module:-

 $directories = "(\/[a-z0-9_\-\.~+%=&,$'!():;*@\[\]]*)*";

Which I have added a # to, to make:-

 $directories = "(\/[a-z0-9_\-\.~+%=&,$'#!():;*@\[\]]*)*";

However, I do not know how to create a patch.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024