Skip to content

No request on back button #520

Open
Open
@jayd3e

Description

@jayd3e

My interface looks like this.
interface_example_one

I'm using two main containers. The first encompasses the entire right side of the page and is called #page.
interface_example_two

The second is a subsection of #page and is called #content.
interface_example_three

As you would expect, when you click on the left sidebar it replaces the content in #page, whereas if you click on any of the subnav items in #page, it replaces the content in #content. My problem is with the back button functionality under this system. I took a look at the pjax demo, and it appears that when you click the back button, the container gets retained, the content is requested again from the server, and then the returned response replaces the container it was originally requested for. Unfortunately, the request isn't going out for me when I click the back button.

screen shot 2015-04-14 at 5 11 25 pm

In this network log, I make three requests and go back. I go to the favorites page, the members page, back to the favorites page, then I attempt to click the back button to go back to the members page. The request doesn't successfully go out at that point. The last bit of information I can bring to the table is that if I put a breakpoint here, and then click the back button in the same scenario, the event.state attribute is an empty object. The event.originalEvent.state happens to not be an empty object, but I've tried replacing event.state with that to no avail.

At the end of the day, I'm just trying to get the pjax request to fire again on back, like it does in the demo.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions