Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

multiple pages in back/forward history?

Using Safari 6.0.5, for the last few days I have found that on SOME websites navigating around appears to insert more than one instance of a page in the back/forward history. It is then necessary to click the Back button (or swipe) more than once in order to return to the previous page, and the Forward button is then greyed out.


An example is the BBC News site: going from www.bbc.co.uk/news to the business page, to the market data page, then using the back button to return to the business page, finally re-entering the market data page results in the following list under the Back button -

BBC NEWS | Business | Market Data | Overview

BBC News - Business

BBC News - Business

BBC News - Business

BBC News - Home

BBC News - Home


Many sites seem unaffected.


Anyone else noticed this?

Safari-OTHER, OS X Mountain Lion (10.8.4)

Posted on Sep 7, 2013 8:07 AM

Reply
34 replies

Sep 10, 2013 7:19 AM in response to andyBall_uk

I have just tried a couple of tests on my iPhone (iOS7 beta) using the BBC News site.


This first test uses the mobile version of the site and does not have any problems:

  • Terminate Safari app fom task switcher
  • Setings -> Safari -> Clear History
  • Settings -> Safari -> Clear Cookies and Data
  • Start Safari app
  • Load bbc.co.uk/news
  • Hold down the back button to show the page history
  • Nothing happens as there is no page history
  • Tap on an article
  • Hold down the back button to show the page history
  • The page history correctly shows one entry for the previous page
  • Press Done
  • Navigating to previous or next using buttons or swipe gestures works correctly


The second test uses the full desktop version of the site and demonstrates the issue:

  • Terminate Safari app fom task switcher
  • Setings -> Safari -> Clear History
  • Settings -> Safari -> Clear Cookies and Data
  • Start Safari app
  • Load bbc.co.uk/news
  • Scroll down to the bottom of the page and tap Desktop Site
  • The desktop version of the page will load
  • If prompted to download the BBC News app press Cancel
  • Tap the tab view button and close the current page
  • A new blank page will appear with no history
  • Load bbc.co.uk/news
  • Observe that the back button is enabled indicating that there is already something in the page history
  • Hold down the back button to show the page history
  • The page history shows an entry for the page that has just loaded, as though it has been visited twice! 😕
  • Press Done
  • Tap on an article
  • Hold down the back button to show the page history
  • The page history shows two entries for the previous page and one entry for the current page! 😮
  • Press Done
  • Navigating to previous or next using buttons or swipe gestures needs to be done twice because of multiple page history entries 😠


This is the same behaviour I have noted when using Safari on my Mac and would seem to indicate the problem is with some code the web site is generating or rather what Safari is doing with the code.

Sep 10, 2013 12:58 PM in response to allanfromcork

I've been experiencing this same problem for the past few days. It happens on web pages I created myself, some of which have been online for over 15 years, so there are no coding issues. I've tried using different ISPs, but that makes no difference. There have been no software updates during this timeframe, so Safari itself has not changed AFAIK.


Turning off javascript DOES stop this from happening. The only javascript I have on those web pages is for Google ads (Adsense). I wonder if that's the culprit. I've tried other web sites where I have Google ads and those do the same thing.


Are there Google ads on any of the web sites where others are experiencing this problem?

Sep 10, 2013 5:04 PM in response to prince2382

Sorry, prince2382, I dunno! But Robert may have pointed us in the right direction - perhaps his report to Google Adsense will result in them producing a fix. Then I can take off the banner filter without which I was quite happy before!


I'm not certain that Google will want to put any effort into the problem - I'm still not clear why Chrome and Firefox seem to cope with the code quite sensibly! However, if one of the solutions is that users (me!) block their ads, that may be some sort of incentive!


Since the problem seems to have arisen a few days ago, and not as a result of any software change by Apple or any source code change on the affected sites, it may be that it was a change by Google which produced it, and it should be up to them to fix, or to have enough muscle to point out to Apple how Safari is mishandling Javascript if that is the case!

multiple pages in back/forward history?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.