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
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

uw07 - October 20, 2008 - 20:52

Nope, nevermind. It's the "#" symbol. Is there a way that I can allow this to ignore the "#"?

#2

uw07 - October 20, 2008 - 20:54
Category:bug report» support request

#3

quicksketch - October 21, 2008 - 04:00

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

uw07 - October 21, 2008 - 14:25

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

quicksketch - October 22, 2008 - 03:36

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

uw07 - October 24, 2008 - 14:19

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

quicksketch - October 24, 2008 - 15:21

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

jaydub - May 7, 2009 - 21:54

#9

Toque - August 8, 2009 - 13:24

Tiny url

 
 

Drupal is a registered trademark of Dries Buytaert.