Jump to content
SAU Community

Recommended Posts

Hi guys,

Links are becoming broken if they include certain (valid) characters...

eg.

http://en.wikipedia.org/wiki/Howl's_Moving_Castle_(film)

Is there any way we can modify the function that auto generates the anchor tags to allow for links like this?

Cheers,
Simon

Link to comment
https://www.sau.com.au/forums/topic/428330-links-become-broken/
Share on other sites

A quote/apostrophe is not a valid url character and should be encoded. The search results on Wikipedia now have an encoded version of this link (I'm assuming somebody else noticed.)

Encoded it looks like this;

http://en.wikipedia.org/wiki/Howl%27s_Moving_Castle_(film) 

But, if you really want to have the whole thing link, then paste it, highlight it and click the link button in the WYSIWYG editor. It can't auto link that because it see's the apostrophe as a break.

Hope that helps?

http://en.wikipedia.org/wiki/Howl%27s_Moving_Castle_(film)

http://en.wikipedia.org/wiki/Howl's_Moving_Castle_(film)

I was pretty sure that an apostrophe is valid, even unencoded... Not a major issue obviously, I've just seen quite a few posts with broken links which aren't getting "special characters" automatically encoded by the Editors linking tool and then people in following posts saying "Dead Link"

http://www.ietf.org/rfc/rfc1738.txt

bottom half of Section 2.2...

hus, only alphanumerics, the special characters "$-_.+!*'(),", and
reserved characters used for their reserved purposes may be used
unencoded within a URL.

http://www.ietf.org/rfc/rfc1738.txt

bottom half of Section 2.2...

hus, only alphanumerics, the special characters "$-_.+!*'(),", and

reserved characters used for their reserved purposes may be used

unencoded within a URL.

Holy smokes. There you go!

Thanks for that. The problem with the quotes, both single and double, is when used unencoded, they will break 'a' tags...

ie;

<a href="http://mysite.com/check_out_this_"cool"_site"> - that becomes a link to http://mysite.com/check_out_this_

That is what is broken when you rely on the auto linking.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...