Keeping ref of link in navigation when showing commit page.

The ref of link in navigation is reset by root_ref, when showing commit page.
I think that it is different behavior from GitHub.