I am looking for a solution with javascript to check if the previous page is not extranal.
With this check I want return true or false so I can use this for another function.
What I have tried is to get the previous URL with history.go(-1)
but this is undefined.
I am happy if I can get the previous URL so far.
Hope somebody can help me out with this.