Text messages app (in-app browser) cutting-off url in message if url containing hashbang character

A

AC Question

We noticed a strange behaviour when sending text messages containing url's which contain a hashbang (#) character. When clicking on such a link, an in-app browser opens the url but cuts-off everything starting at the hashbang character.

Example url: "example.com/#/c?code=ABCDEFG" with https:// in front.

When sending this url in a text message to my Samsung Galaxy S6, opening the text message with the default message app and clicking the link, an in-app browser opens using the url "example.com/" with https:// in front. Everything starting with at hashbang character is cut-off from the url.

This does not happen when using another text messages app, e.g. textra, only using the default message app.

Anyone knows how to fix that in the default text messaging app?

Note: We are developing apps that need to work with such a default setup on a user's phone, therefore solutions like "just use another text messages app" can't be applied by us.

Thanks very much for any help,
Sebastian
 

ManiacJoe

Trusted Member
Aug 5, 2015
6,326
3
38
Visit site
That would be a bug in that default messaging app.
Submit a bug report to the company responsible for that app. Of course, there is no guaranty of if/when they will fix their bug.

That said, why use the "#" ?
 

leschirmeur

New member
Jan 18, 2017
2
0
0
Visit site
We noticed a strange behaviour when sending text messages containing url's which contain a hashbang (#) character. When clicking on such a link, an in-app browser opens the url but cuts-off everything starting at the hashbang character.

Example url: example.com/#/c?code=ABCDEFG

When sending this url in a text message to my Samsung Galaxy S6, opening the text message with the default message app and clicking the link, an in-app browser opens using the url example.com/. Everything starting with at hashbang character is cut-off from the url.

This does not happen when using another text messages app, e.g. textra, only using the default message app.

Anyone knows how to fix that in the default text messaging app?

Note: We are developing apps that need to work with such a default setup on a user's phone, therefore solutions like "just use another text messages app" can't be applied by us.

Another thread on the text messages in-app browser opening url's from within text messages for reference: http://forums.androidcentral.com/samsung-galaxy-s7/707781-open-links-text-messages-chrome.html

Thanks very much for any help,
Sebastian
 

Trending Posts

Forum statistics

Threads
943,102
Messages
6,917,289
Members
3,158,820
Latest member
chuckm