Fix the following issues, related to bugs in redirecting:
Whenever the user updates the current page by pressing "page refresh" or F5, it looses the current url and been redirected to the user-group default page.
Redirects from sign-up/sign-in pollutes console with warnings.
On page refresh it flickers and change the url multiple times.
Fix the following issues, related to bugs in redirecting: