Hi,

I'm trying to create a redirect from / to /content/blog/posts . The way
I did this was to change the sling:redirect property of / to
/content/blog/posts.

However, the redirect ends up being sent to /blog/posts ( /content
prefix removed ). By debugging I realised that this is removed by the
ResourceResolver.map() call since there the
ResourceResolverFactoryActivator URL mappings contain

  "/:/", "/content/:/", "/system/docroot/:/"

which means that for the ResourceResolver.map() call /content is
removed.

I am not too familiar with that area of Sling, so my questions are:

1) Is another ( clean ) way of doing this? I imagine I could redirect
to /content/content/blog/posts or http://localhost:8080/content/blog/po
sts, but both seem workardounds

2) Does this look like a bug?

Thanks,

Robert

Reply via email to