fix metadata view to return redirect, refs #496
Merge branch 'master' into integration