Answer the question
In order to leave comments, you need to log in
How to load layout when navigating back through the page using ajax?
Hello. The essence is this:
I load elements into the block with Ajax. I send an ajax request to the controller, in the controller I look at the ajax request or not, if ajax then
if ($request->ajax()) {
return view('includes.recipe-card-col-3', ['posts' => $posts])->render();
}
Answer the question
In order to leave comments, you need to log in
There is an HTML5 History/State API for the "Forward" and "Back" buttons and, in particular, for working with it History.js https://github.com/browserstate/history.js/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question