[bugfix] Merge request diff view behaviour fix
Created by: SSPkrolik
Fixed 'back button' bug in merge request view.
Steps to reproduce:
- Open merge request view page at a URL like this: http://localhost:3000/gitlab-org/gitlab-test/merge_requests/3/diffs on "Discussion" tab
- Click on 'Changes' tab
- Click 'View file @ rev-number' button
- Click 'BACK' browser button
Expected result: User moves back to the diff page
Actual result:
User is moved to the diff page which is shown as a plain json diff document, because browser has cached the last AJAX-call of loadDiff
coffee-script method.