Fixes #716 - Fix "edit" link on contract detail page