Bug Solving the URL Code Problem with Parentheses

  • Thread starter Thread starter Redbelly98
  • Start date Start date
AI Thread Summary
URLs ending with a closing parenthesis ")" are improperly formatted by the code that generates links, resulting in the omission of the character. This issue leads to invalid links, as demonstrated with the Wikipedia URL for "Commutator (electric)," which appears incorrectly in posts. The correct URL should retain the closing parenthesis to ensure proper linking. Users are encouraged to address this problem to maintain link integrity. Resolving this issue is essential for accurate URL representation in discussions.
Redbelly98
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
12,178
Reaction score
186
If you type in a url that ends with a ")", the ")" gets omitted by the code that generates a link.

For example, typing

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric)[/noparse]

then results in the following bad link

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric ) [/noparse]

In the final post, this appears as
http://en.wikipedia.org/wiki/Commutator_(electric )

The ")" should get included in the URL:

[noparse]http://en.wikipedia.org/wiki/Commutator_(electric) [/noparse]

which would become a valid link in the post:
http://en.wikipedia.org/wiki/Commutator_(electric)


Here's the thread where this happened:
https://www.physicsforums.com/showthread.php?p=2093336&posted=1#post2093336
 
Last edited by a moderator:
Physics news on Phys.org
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...

Similar threads

Replies
3
Views
1K
Replies
2
Views
4K
Replies
13
Views
4K
Replies
21
Views
2K
Replies
4
Views
1K
Replies
9
Views
2K
Back
Top