Skip to content

Commit

Permalink
Include the pjax container element in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Kornher committed Jun 22, 2015
1 parent ee05b79 commit b52440a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JacobBennett/Pjax/PjaxMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle($request, Closure $next)
}

// Set new content for the response
$response->setContent($title . $response_container->html());
$response->setContent($title . $response_container->getNode(0)->ownerDocument->saveHTML($response_container->getNode(0)));
}

// Updating address bar with the last URL in case there were redirects
Expand Down

0 comments on commit b52440a

Please sign in to comment.