1
I can’t get the current angular URL in PHP, I’ve tried using $_SERVER["HTTP_REFERER"], in addition, comes the original file path ...
Original URL: http://link.com.br/ead/moodle2017/#/lessons/39
I need the parameter to manipulate in PHP.
1
I can’t get the current angular URL in PHP, I’ve tried using $_SERVER["HTTP_REFERER"], in addition, comes the original file path ...
Original URL: http://link.com.br/ead/moodle2017/#/lessons/39
I need the parameter to manipulate in PHP.
1
In the URL
http://link.com.br/ead/moodle2017/#/aulas/39
The party defining the resource is
http://link.com.br/ead/moodle2017/
while the party defining the state is
#/aulas/39
The problem you are facing is that the request GET
made to the server only has, as reference in the header referrer
, the information of the resource.
An option would then be to send the captured URL via javascript, using window.location
for example.
Browser other questions tagged php angularjs url
You are not signed in. Login or sign up in order to post.