html - Anchor tag doesn't work in iPhone Safari -


i'm having issue named anchor tag in iphone safari browser. works in desktop browsers including safari, not working in mobile safari. weird!

for example url looks like:

http://www.example.com/my-example-article-url-is-like.php#articlebottom 

the above url newsletter , should go bottom paragraph in article page gave id this:

<p id="articlebottom">paragraph here</p> 

when click above url newsletter goes article page, not bottom para specify id. although can see #articlebottom part missing url when came targeted page in safari.

any thoughts appreciated!

opera, ie, chrome , firefox carry on anchor new page. however, safari loses anchor on redirect.

so if add / before id tag?

old url path: http://www.example.com/my-example-article-url-is-like.php#articlebottom

new url path: http://www.example.com/my-example-article-url-is-like.php/#articlebottom

another solution you'd have delete both "www." domain , add forward slash before anchor tag in url/pathname before safari respond properly. firefox doesn't seem care, , haven't gotten testing on ie yet.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -