Fixes trailing slash redirect for indexaction in profile controller