I'm trying to get the current url I'm in with $_SERVER['REQUEST_URI'].
I'm using IPS Community software and there is what is called a "block". The code is inside this block and this block is added on my website's template (so when I'm navigating the block is always there).
The first time I'm making the request (first page visited) the $_SERVER['REQUEST_URI'] is good. But if I'm going on another one the $_SERVER['REQUEST_URI'] is not updated. It has the first value and not a new one.
After few tests I've come to the conclusion that I've to wait for like a minute to request a new value.
Is it normal ? Does it come from IPS ? Does it come from nginx ? Is there another way to know my current url ? Can I force the value to be updated ?