I have a problem (no wayyy !?).. Like I said in my browser, when I click on the previous button, it makes an AJAX request.. So it could be a little bit disturbing for the users of my website. So why it does this ? and how to solve it ?
Here the code concerned in my controller. I'm using Laravel 4.1.
if (Request::ajax()) {
return Response::json($viewContent);
}
return View::make($viewName, $viewContent);
Please, Thanks.
EDIT: I confirm that 'Previous' button mean the browsers back button.