I can not get the current URL of angular in PHP, I have already tried to use $ _SERVER ["HTTP_REFERER"], in addition, comes the original path of the file ...
Original URL: link
I need the parameter to handle in PHP.
I can not get the current URL of angular in PHP, I have already tried to use $ _SERVER ["HTTP_REFERER"], in addition, comes the original path of the file ...
Original URL: link
I need the parameter to handle in PHP.
In the URL
http://link.com.br/ead/moodle2017/#/aulas/39
The defining part of the resource is
http://link.com.br/ead/moodle2017/
whereas the part that defines the state is
#/aulas/39
The problem you are experiencing is that the GET
request to the server only has the information of the resource as a reference in the referrer
header.
An option would then be to send the URL captured via javascript, using window.location
for example.