OP Tipping OP Tipping
Observe:
I paste a URL ending with a close-parenthesis...
http://en.wikipedia.org/wiki/Mora_(linguistics)
The close-parenthesis is not linkified.
Obviously I can get around this using the url tags.
Mora
But I thought I should point this out in case this is a problem that can be corrected, rather than just one of those things that must be endured.
Reply
Faldage Faldage
Quote:
Observe:
I paste a URL ending with a close-parenthesis...
http://en.wikipedia.org/wiki/Mora_(linguistics)
The close-parenthesis is not linkified.
Obviously I can get around this using the url tags.
Mora
But I thought I should point this out in case this is a problem that can be corrected, rather than just one of those things that must be endured.
Except this strips both parentheses and gives us:
Wikipedia does not have an article with this exact name
Reply
Dr. Techie Dr. Techie
We've seen previously that ExpressionEngine seems to have several built-in URL-wrecking features. This appears to be one of them.
Reply
OP Tipping OP Tipping
Well that is unfortunate.
Reply
Dave Wilton dwilton
The parentheses in URLs are not allowed by Expression Engine (although they are allowed by the HTML standard for URLs) because parentheses are an essential part of most scripting languages and EE strips them out to prevent hackers from covertly inserting malicious scripts.
There may be a way to work around it. I've tried turning off the "Safe HTML only" feature in the EE Forums module, but it doesn't seem to have any effect on this issue. I'll keep looking, although I'm a bit leery about allowing something that could be potentially unsafe.
The real solution is for websites to stop using such characters in their URLs. I don't think many do. Wikipedia is an exception--prolly because they can't control what the creator of an entry uses for the URL and they've got thousands of people doing so, most probably not aware that this can cause a problem.
Reply
OP Tipping OP Tipping
"prolly because they can’t control what the creator of an entry uses for the URL and they’ve got thousands of people doing so, most probably not aware that this can cause a problem"
They do have pretty exacting standards of what can be used as a subject title, and non-compliant titles are repaired. The URL is determined by the subject title.
The use of parentheses to disambiguate is a matter of policy.
http://en.wikipedia.org/wiki/Wikipedia:NCDAB
For disambiguating specific topic pages by using an unambiguous article title, several options are available:
1. When there is another term (such as Pocket billiards instead of Pool) or more complete name (such as Delta rocket instead of Delta) that is equally clear and unambiguous, that should be used.
2. A disambiguating word or phrase can be added in parentheses. The word or phrase in parentheses should be:
* the generic class that includes the topic, as in Mercury (element), Seal (mammal); or
* the subject or context to which the topic applies, as in Union (set theory), Inflation (economics).
3. Rarely, an adjective describing the topic can be used, but it is usually better to rephrase such a title to avoid parentheses.
4. With place-names, if the disambiguating term is a higher-level administrative division, it is often separated using a comma instead of parentheses, as in Windsor, Berkshire. See Wikipedia:Naming conventions (settlements).
EDIT: FWIW (probably not much), I don't agree that the solution is leave them out of URLs. The HTML standard for URLs is not new: if someone designs software that fails to recognise and interpret a compliant URL as a compliant URL, then they've written faulty software. Square brackets and less than/greater than are commonly used for tags in scripting, presumably because parentheses are such a common part of the language.
Reply
Faldage Faldage
The workaround is to go to the page you get sent to and add the ) in the address window. Or else you can copy the url, including the ) that EE has stripped and paste it into the address window.
Reply
Reply