Facebook profile - not valid URL
uw07 - October 20, 2008 - 20:47
| Project: | Link |
| Version: | 5.x-2.5 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello,
I installed the Link module with the sole purpose of creating a Facebook profile link field for user's submitting their user profiles. However, when I add a facebook profile link (http://www.facebook.com/home.php#/profile.php?id=8644183&ref=profile) I receive an invalid URL error upon submission. It doesn't seem to like the second ".php" - if i delete that it seems to work. Anything I can do to work around this?

#1
Nope, nevermind. It's the "#" symbol. Is there a way that I can allow this to ignore the "#"?
#2
#3
Hmm, this isn't a proper URL format, so link.module is correctly flagging it as incorrect. Facebook allows you to use simply http://www.facebook.com/profile.php?id=8644183, I'd suggest you use that instead.
#4
I'm just worried that people are going to copy and paste from their Facebook profile (which is how I got the link in the example).
It is the "#" that seems to be rejected. Isn't that a pretty common character in URLs?
#5
The # symbol is used to reference a location in the middle of a webpage, rather than the top of the page like most links. The link you posted is invalid because a slash cannot be used after the # (inside what is called a "named anchor").
The most viable solution I can see here is providing a way to turn off validation entirely as the URL validation is already very loose.
#6
Thank you again for the reply. Is there a way to turn off the URL validation? Or is this something that has do be changed within the module?
#7
Right now there isn't a way to turn off validation, it'll need to be added to the module as a feature. I'm not working extensively on the module but I'd be accepting of patches that are volunteered to fix the problem.
#8
related to #427990: Incorrect fragment handling
#9
Tiny url