concerto/concerto — Issue #9: AJAX popstate causes raw JS to be returned in specific cases
Author: brzaik
Created: 2011-12-31 19:18:42+00:00
State: open

When a user navigates through a remote-loading JS view and then over to a plain old HTML view, using the browser back button results in plain JS being shown without being properly rendered. For example, navigate to /content then go over to /screens - when you click the browser back button you should see plain, unrendered JavaScript.

The problem might be caused by the popstate binding inside application.js:

```$(window).bind("popstate", function () {
$.getScript(location.href);
});
```