Regardless of the feature, should not use location.href for redirecting, otherwise will cause reloading the whole page, and cause errors of () iteration errors in angular