News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to make URL's with parentheses at the end work

Started by Dwev, April 09, 2021, 10:13:40 AM

Previous topic - Next topic

Dwev

Most URL's users post on our SMF forum work without doing extra, so hardly anyone is using bbcode.

But Wikipedia quite often uses URL's that end with a parentheses, like this one https://en.wikipedia.org/wiki/Kotlin_(programming_language)

The problem is that SMF seems to ignore the last parentheses, so the URL becomes https://en.wikipedia.org/wiki/Kotlin_(programming_language
(and that URL simply doesn't work)

Is there a way to correct this somewhere in the php?

P.S.
I just noticed that the parentheses in the first URL is ignored here as well, so I guess this is an SMF issue

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Shambles

Quote from: Sir Osis of Liver on April 09, 2021, 01:29:37 PM
First url is correct and works fine.

Actually, it's not fine. It brings up a "did you mean..." link.

Steve

DO NOT pm me for support!

Dwev

Well, that makes it rather weird. Because it doesn't work for me and Shambles.

Either way, still looking for an answer to my problem, and would be much obliged if someone could help me.

Shambles

Quote from: Steve on April 09, 2021, 03:55:32 PM
It worked fine for me.

Interesting.

Do you get to see the actual intended target?



or the "Did you mean..." page




This distinction is important as I believe the OP has a valid issue to report.

Steve

I guess I got your second image (I just clicked the link again), though I'd swear I got the intended target page this morning ... apparently that's my one error for this year used up. :P
DO NOT pm me for support!

a10

^^^ I definitely got the real wiki page a few times early on, then it went to 'did you mean' and no more sign of the real page. Strange.

But surely something to investigate, tested pasting the link (copied direct from wiki adressbar) into my forum, the ) is ignored as part of the address, & one sees the underline stops short.

direct paste: https://en.wikipedia.org/wiki/Kotlin_(programming_language)

inside a bbc url: https://en.wikipedia.org/wiki/Kotlin_(programming_language)


2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Dwev

Glad that we're all on the same page now, and that you also know a parentheses at the end of an URL isn't taken into account by SMF.

But my question still stands of course: how can we solve this? (I suppose by changing something in the php).

Illori

i dont believe there is a fix for this available.

Sir Osis of Liver

Quote from: Shambles on April 09, 2021, 02:20:11 PM
Quote from: Sir Osis of Liver on April 09, 2021, 01:29:37 PM
First url is correct and works fine.

Actually, it's not fine. It brings up a "did you mean..." link.

It worked earlier today, went directly to article.  Now it doesn't.

This computer s%#t will never catch on. >:(
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: