transform document url to share page
Merge branch 'stable-6.0.x' of github.com:andreicioban/xwiki-platform into stable-6.0.x