Better redirect handling

Use reverse() to look up URL