Alternate URLs Using Aliases In Sitecore
Sitecore determines the default URL for an item based on its path, for instance the default URL for /sitecore/content/home/career/path/jobs is [sitename]/career/path/jobs. In some cases, it is useful to have shorter URLs that map to longer paths, for instance,[sitename]/jobs may be preferable as alternate URLs through a feature known as Aliases.
To create an alias in the Content Editor:
1. Go to Content Editor, click on the Page, On the Presentation tab, in the URL group, click Aliases.
2. In the Aliases dialog box, in the Name field, enter the alias name.
To create an alias in the Experience Editor:
1. Click on the Page, Goto to Experience Editor, On the Presentation tab, in the URL group, click Aliases.
2. In the Aliases dialog box, in the Name field, enter the alias name.
3. Click Add.
4. When you have finished defining the aliases you want, click OK.
Where it is Created?
In the Content Editor, go to System/Aliases. A new item will be created. Clicking on it will show where it is linked to. So whenever you want to Publish you can publish from here.
In traditional Sitecore, the link inserted will be /Site/Home/Alias1. We have to take care of the multisite settings.
whereas with SXA, the link inserted will be with the Tenant details - /Tenant/Site/Home/Alias1.
Comments
Post a Comment