Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Loading https://...?_host__Info=... disturbs future loading of other pages #37

Closed
SoftTimur opened this issue Aug 10, 2017 · 1 comment
Assignees

Comments

@SoftTimur
Copy link

SoftTimur commented Aug 10, 2017

Hello,

I just discovered OfficeJSHelpers. I added console.log("OfficeHelpers.Utilities.host: " + OfficeHelpers.Utilities.host) and console.log("OfficeHelpers.Utilities.platform: " + OfficeHelpers.Utilities.platform) to my website. It works fine, but when I load in a browser https://localhost:3000/try?_host_Info=excel|web|16.00|en-us|7fe9b4e9-d51e-bea5-d194-c817bc5ed4bc|isDialog#%2Ftry%3F_host_Info=excel%7Cweb%7C16.00%7Cen-us%7C7fe9b4e9-d51e-bea5-d194-c817bc5ed4bc%7CisDialog (see why I have this url here), it considers EXCEL as host and OFFICE_ONLINE as platform, and raised an error Uncaught TypeError: Cannot read property '_appName' of null in excel-web-16.00.js.

What is worse is that, it disturbs the loading of other pages. Now, all the pages like https://localhost:3000/home or https://localhost:3000/try in a browser returns EXCEL as host and OFFICE_ONLINE as platform, and raised an error Uncaught Error: Sys.ArgumentNullException: Value cannot be null. Parameter name: conversationId in excel-web-16.00.js. The only solution is to clearing browser history data.

I think it is a bug...

Thank you

@SoftTimur SoftTimur changed the title Loading https://...?_host__Info disturbs future loading of other pages Loading https://...?_host__Info=... disturbs future loading of other pages Aug 10, 2017
@WrathOfZombies
Copy link
Contributor

@Zlatkovsky something that you'd want to take a look at.. Are we caching the value of host & platform? Also why are url parameters even a source for determining paths? I assumed that sessionStorage would provide that information when loading in Office.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants