I am currently developing a project with CI. In the project I need to add "tel" in "a" tag for calling from the website.
I addded like this
<a link="tel:+919898989898">
But when I open link from page, the link is like this abc.com/tel:+919898989898
and it is redirecting to a error page.If I manually remove the baseurl from the page it is working.
Please give me some idea why it is happening and how to prevent the baseurl adding auomatically.
Please don't give link which explain the "tel" tag description
Asked
Active
Viewed 343 times
1

SuUbha
- 167
- 2
- 15
-
1try http://stackoverflow.com/questions/26088523/click-to-call-html – Rakesh Sharma Jun 02 '16 at 05:43
-
1don't you mean `` instead of `` or is that just a typo in the question? – ArtisticPhoenix Jun 02 '16 at 05:43
-
I always just do `555-666-77777` for phones. Similar to `` ... for email. You could try `` if it's a cell phone though :o)> – ArtisticPhoenix Jun 02 '16 at 05:49
-
It is a typo. sorry for that. I used – SuUbha Jun 02 '16 at 05:52
-
have a look at this question, http://stackoverflow.com/questions/1608548/how-to-trigger-a-phone-call-when-clicking-a-link-in-a-web-page-on-mobile-phone – ArtisticPhoenix Jun 02 '16 at 05:53
-
My main problem is, it is adding baseurl with "a" tag automatically. From page the link is like that "abc.com/tel:+919898989898". If I manually remove the baseurl from the page it is working. please give me a solution which prevent the baseurl adding auomatically. – SuUbha Jun 02 '16 at 05:56
2 Answers
0
Use <a href="tel:555-555-5555">555-555-5555</a>.

Mukesh Ram
- 6,248
- 4
- 19
- 37
-
i think `555-666-77777` is better like I said in the comments, :-/ – ArtisticPhoenix Jun 02 '16 at 05:55