Ensure object parameter is removed from edit link when closing sidebar