From 055ecc30a186be7f79305a17d135af362d0b546d Mon Sep 17 00:00:00 2001 From: Dmitri Pisarev Date: Tue, 6 Mar 2018 09:55:06 +0300 Subject: [PATCH] BUGFIX: retain url params in urls --- packages/neos-ui-guest-frame/src/initializeGuestFrame.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/neos-ui-guest-frame/src/initializeGuestFrame.js b/packages/neos-ui-guest-frame/src/initializeGuestFrame.js index 1d48ac0c16..9fb8792e56 100644 --- a/packages/neos-ui-guest-frame/src/initializeGuestFrame.js +++ b/packages/neos-ui-guest-frame/src/initializeGuestFrame.js @@ -57,8 +57,9 @@ export default ({globalRegistry, store}) => function * initializeGuestFrame() { yield put(actions.UI.ContentCanvas.setContextPath(documentInformation.metaData.contextPath, documentInformation.metaData.siteNode)); yield put(actions.UI.ContentCanvas.setPreviewUrl(documentInformation.metaData.previewUrl)); yield put(actions.CR.ContentDimensions.setActive(documentInformation.metaData.contentDimensions.active)); - // the user may have navigated by clicking an inline link - that's why we need to update the contentCanvas URL to be in sync with the shown content - yield put(actions.UI.ContentCanvas.setSrc(documentInformation.metaData.url)); + // The user may have navigated by clicking an inline link - that's why we need to update the contentCanvas URL to be in sync with the shown content. + // We need to set the src to the actual src of the iframe, and not retrive it from documentInformation, as it may differ, e.g. contain additional arguments. + yield put(actions.UI.ContentCanvas.setSrc(guestFrameWindow.document.location.href)); const focusSelectedNode = event => { const clickPath = Array.prototype.slice.call(eventPath(event));