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

https://jira.ets.berkeley.edu/jira/browse/CYB-291
Merge pull request #177 from christianv/CYB-291

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