fix redirect, use the new routing
Merge pull request #1759 from owncloud/redirect_fix_1737

fix redirect, use the new routing