In my project I use www.example.com/test?prevUrl=test/3/home
this is working fine in development when inside my controller I do $request->prevUrl
but doesn't work in production(returns null
). can someone help?
edit= "The query_string
is not being properly set i-e (?prevUrl=something
) and for that reason my paginator is also not working properly
I am using ubuntu 16.04 nginx server. The problem was that $_GET session variables were not being set properly. so what I did was inside /etc/nginx/sites-available/default
and inside location /
block/ directive I changed try_files $uri $uri/ /index.php?$query_string;
to try_files $uri $uri/ /index.php?$args;
and it worked.