Affects Version/s: 6.2.0 CE GA1, 6.2.X EE, 7.0.0 M3
1. Access localhost:8080
2. Add several pages to the default site
3. Go to Site Administration -> Configuration
5. Preview the sitemap for the current site and you should see the urls are properly generated (the i18n path is prepend to the friendly url): http://localhost:8080/es/web/guest/blogs
Modify /etc/hosts in your system and add the following line at the very end:
Now, access your Liferay instance by typing in the browser:
Follow the previous steps to preview the sitemap.
If you take a look at the generated urls you will see that they are generated like this (the i18n path is at the end of the url which is wrong):
In addition to sitemap, this also affects canonical urls and alternate urls.