Redirect Notice
 The previous page is sending you to https://stackoverflow.com/questions/50728365/how-to-get-current-url-for-an-if-else-statement.

 If you do not want to visit that page, you can return to the previous page.