New UI, RP.getReferringURL() - not working ?

Julian Poyntz
Tera Contributor

just trying out the new UI, and a context menu update we have is causing a problem

There was a line

var urlpath = RP.getReferringURL(); 

that used to get us the path, but now seems to return null and throws the rest of the menu off.  Changing that value for a hard coded entry and it all works, so I know it is that line.

What do we use in the new UI in a context menu to get the referring URL ?

 

Thanks in advance

5 REPLIES 5

When I said I don't have it, I meant the specific line that does not work for you. Of course I have the UI Macro itself. Just it does not contain the line you mentioned. But given that it is custom code - as you say now, that is to be expected.

As for the way getReferringURL() works, I guess I have misunderstood it's purpose. I thought it would return the page in the Referer HTTP header, but it seems it just return the current URL. Though the documentation seems to agree with what I'd expect (though the wording is pretty open to interpretation):

Returns the URL where the request originated.

Maybe for Polaris someone took the courage and corrected it to do what its name and the documentation suggests?