leave button sends you to the correct docid fixes #253