Added feature to replace url with current url