How do I get a URL of angularJs in PHP

1

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.

    
asked by anonymous 29.06.2017 / 19:26

1 answer

1

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.

    
29.06.2017 / 22:27