Fix for strange Insert Footnotes/Endnotes behavior when using createDocument method
When a document is created and opened using the createDocument method, it causes strange side effects to the Insert Footnotes & Insert Endnotes functionality.
Steps to reproduce:
1. Create a new Word document using createDocument().
2. In the new document, select "References->Insert Footnote" (or "Insert Endnote").
- A new document window pops up unexpectedly.
This looks like a product bug. You'll get more response by logging your issue on GitHub - https://github.com/officedev/office-js/issues
Please be sure to include the version of word and if you can fiddler/use browser debug tools to determine the URL of the new URL, that will make it easier to diagnose.