Commits

Anonymous committed ce6b650

0.11-stable: Fix 'Annotate' and 'Normal' context navigation links so the browsing revision don't change just by viewing annotation information. Fixes #9694.

Comments (0)

Files changed (1)

trac/versioncontrol/web_ui/browser.py

                 add_ctxtnav(req, _('Normal'), 
                             title=_('View file without annotations'), 
                             href=req.href.browser(node.created_path, 
-                                                  rev=node.rev))
+                                                  rev=rev))
             else:
                 add_ctxtnav(req, _('Annotate'), 
                             title=_('Annotate each line with the last '
                                     'changed revision '
                                     '(this can be time consuming...)'), 
                             href=req.href.browser(node.created_path, 
-                                                  rev=node.rev,
+                                                  rev=rev,
                                                   annotate='blame'))
         add_ctxtnav(req, _('Revision Log'), 
                     href=req.href.log(path, rev=rev))