CYB-291 - Gallery: hit "back to gallery" links on detail view, hit 404

https://jira.ets.berkeley.edu/jira/browse/CYB-291