502 error page shows 'Go Back' link when there is nothing to go back to

I opened a MR in a new window and I got a 502 with a 'Go Back' link. When I click the link nothing happens.

If there is not a page to go back to, we should not show this link.

Screen_Shot_2017-02-02_at_15.26.43

Solution

Only show "Go back" when we have history.