Using referrer to retrieve the page url if the page is embedded in an iframe to fix the wrong sharing url