AEM 6.4 Resource Resolver Mapping home page to root
This seems like a fairly common use case but we have a client that is experiencing some issues with url rewriting / shortening.
The gist is, the client would like to have all links on the site that link to the home page '/content/client-site/en/home' to map to root '/'. Also note that all content lives under this home page.
Using the resource resolver we have mappings to shorten the urls on the publish instances:
/content/client-site/en/home/(.*):/$1
/content/client-site/en/home:/
We have a few Apache rewrites on the dispatcher side to handle content shortening and redirection properly.
What the client is experiencing is when they create a link on a page back to the homepage and use a relative path in author; once published the url is mapped to '/' but a '.html' extension is being added. In short the url to the home page ends up looking like '/.html' instead of '/'.