Ensure object parameter is removed from edit link when closing sidebar

Refs #620