To reproduce this issue, follow these steps:
- Build the Razor solution from Main (which is currently targeting 2.1).
- Launch the Calendar template in the browser of your choice, using the 2.1 assemblies.
- Log in and create a gallery.
- Upload a Photo to that gallery.
- From the landing page showing the uploaded photo, click on gallery name to go back to gallery. (This should be equivalent to directly navigating to /<SiteName>/View/1)
Result: Navigation fails with a 404 page.
Expected: No such error. This should redirect back to the page for the gallery you created in step 3.