Step 1
Define the path that you would like to redirect from:
{
path: 'catalog',
views: {
body: 'izyware/redirectcatalog'
}
};
Step 2
Create the module that will handle the redirect. In this example, izyware/redirectcatalog:
Step 3
There are a few considerations to handling a redirect:
- The user experience
- The crawler experience
User Experience
We recommend that you show a meaningful message to the user with a clickable call to action to got to the new location.
Crawler Experience
Either 301 or 302 status codes can be passed down, but we recommend that you use 301.