user93353
user93353

Reputation: 14039

Android SMS app ignores a trailing "?" when the URL containing a trailing "?" is clicked

I send an SMS saying "Click on https://www.example.com/?"

When I receive this SMS on an Android phone, only the https://www.example.com is clickable. The "?" is visible in the SMS, but is not part of the clickable URL.

Is there some way to escape the ? or do some other workaround so that click on the link goes to https://www.example.com/?

EDIT: Forget Android - even on this page on stackoverflow - the "?" is not part of the clickable link

Upvotes: 2

Views: 470

Answers (3)

impathuri
impathuri

Reputation: 574

Hi you can send by converting to short url by https://goo.gl/ and you can get same as expected .

Upvotes: -1

Tjaart
Tjaart

Reputation: 496

Can you replace the question mark (?) by %3F

www.example.com/%3F

See:

https://www.w3schools.com/tags/ref_urlencode.asp

Upvotes: 3

Nick Cardoso
Nick Cardoso

Reputation: 21753

This appears to be correct behaviour (as far as I have observed on other systems) - an empty query string (effectively a dangling question mark) is not necessarily part of the URL so appears as punctuation.

As a workaround my suggestion is to ensure you always provide a parameter:

https://www.example.com/?a=a

Ideally you can find something that makes the link enticing to the user (rather than only confusing):

https://www.example.com/?vip=yes

Because these are not query parameters you are actually using, they should not affect your page processing

Upvotes: 1

Related Questions