Navigation to directory(code) is broken in snapshot view
URL to the code (directory) view was missing in case the snapshot is missing an origin cotext. Added an extra parameter called directory_url in the snapshot_context to fix this.
realated to #3644 (closed)
Migrated from D6449 (view on Phabricator)