php - Return to referer (double back)


I often use referer when i want to redirect to the actually page :

$referer = $request->headers->get('referer');
return $this->redirect($referer);

But when I use this method I have to hit twice to the backward button (the button of any browser that will go to the last page used) ... So I want to know if there is the other method to redirect to the same page but without this double backward bug ... thanks for anyone that will help :)

I am talking about this button ---> enter image description here

People are also looking for solutions to the problem: php - application level error after symfony update to 3.4


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.