fixes #5547 Html Page should not open the page up in edit

Fixed the issue and pushed the code for review, please check it.