Made /resource routes redirect appropriately.

Closes #352