oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Browser back button behavior different between http://joehewitt.com/iui/music.html and http://iui-js.appspot.com/samples/music/music.html #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Music sample, Artists->The Beatles->Artists(back button in page)-
>Belle & Sebastian
2. Click Browser back button twice

What is the expected output? What do you see instead?
* In Joehewitt.com's page, it is back at Music home page.
  But in the iui-js.appspot.com's page, it is at Beatles page.

What version of the product are you using? On what operating system?
* 0.4.0

Please provide any additional information below.
* I think the fix is not to set history.hash when the back button in page 
(Artists in this scenario) is clicked.

Original issue reported on code.google.com by Emerald....@gmail.com on 4 Mar 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Proposed fixes:
  goBack: function()
    {
        pageHistory.pop();  // pop current page
                // Remove these 3 lines
        //   var pageID = pageHistory.pop();  // pop/get parent
        //   var page = $(pageID);
        //   iui.showPage(page, true);
                // use the line below as in Joe's old code
        history.back();
    },

Original comment by piyu.ch...@gmail.com on 4 Mar 2010 at 9:40

GoogleCodeExporter commented 9 years ago
This is a bug in the Joe Hewitt version that was fixed.

The iUI back button is not the same as the browser back button.  The iUI back 
button should always return the user to the previous page on the navigation 
stack.  The browser back button should return the user to the previous anchor.

Original comment by msgilli...@gmail.com on 9 Jan 2012 at 6:35

GoogleCodeExporter commented 9 years ago
Issue #183 addresses the "conflict between page hierarchy and page history."  
See comment #3 and #4.

If there is any additional information about any problems with this, please 
comment on issue #183.

Original comment by msgilli...@gmail.com on 9 Jan 2012 at 6:47