From 955fea923a1c952b1786c603c1e02deec6ce9325 Mon Sep 17 00:00:00 2001 From: Jeremy Press Date: Thu, 25 May 2017 16:47:58 -0700 Subject: [PATCH] Fix: Fixing vanity urls for excel online on IE11 --- src/lib/viewers/office/OfficeViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/viewers/office/OfficeViewer.js b/src/lib/viewers/office/OfficeViewer.js index 85eb80349..a0cf8a53c 100644 --- a/src/lib/viewers/office/OfficeViewer.js +++ b/src/lib/viewers/office/OfficeViewer.js @@ -193,7 +193,7 @@ const MESSAGE_HOST_READY = 'Host_PostmessageReady'; const tempAnchor = document.createElement('a'); tempAnchor.href = sharedLink; const vanitySubdomain = tempAnchor.hostname.split('.')[0]; - const vanityName = tempAnchor.pathname.split('/v/')[1]; + const vanityName = tempAnchor.href.split('/v/')[1]; src = `${src}?v=${vanityName}&vanity_subdomain=${vanitySubdomain}&fileId=${fileId}`; } } else {