Skip to content

Deprecate duplicate navigation function

Miguel Rincon requested to merge mrincon-remove-duplicate-navigation-logic into master

What does this MR do and why?

Deprecate a duplicate navigation function in our URL utilities file.

This change deprecates redirectTo, a widely used function in favor or visitUrl which accomplishes the same.

I decided to deprecate this one because of the name: "redirect" in redirectTo is not the correct wording for such functionality. After we are remove the duplicate we should also add some tests to this file.

https://developer.mozilla.org/en-US/docs/Web/API/Location/href:

Setting the value of href navigates to the provided URL. If you want redirection, use location.replace().

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Miguel Rincon

Merge request reports