Added an if statement that checks if a ping updates the current URL. If
not, doesn't reload page.