From e50c4320a44fd5ab0bff99190e2dd2ca9b3db47c Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 28 Sep 2021 20:46:10 +0200 Subject: [PATCH] Revert "fix: new compilation creation path should be relative to current url" This reverts commit 9c5ea6f39774d9c50737fe5d3c17b92dcb464c53. --- .../templates/freemarker/body/search/search-pagedResults.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl index e67f457b..ac3161f4 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl @@ -151,7 +151,7 @@ } var iframe = document.createElement("iframe"); var excerptsCounter = $('.compilationDraftExcerpt').length; - iframe.setAttribute("src", window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/editRequestDispatch?typeOfNew=https%3A%2F%2Flitvinovg.pro%2Ftext_structures%23compilation&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.CompilationGenerator&excerptsCount=" + excerptsCounter); + iframe.setAttribute("src", "${urls.base}/editRequestDispatch?typeOfNew=https%3A%2F%2Flitvinovg.pro%2Ftext_structures%23compilation&editForm=edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.CompilationGenerator&excerptsCount=" + excerptsCounter); iframe.style.width = "1px"; iframe.style.height = "1px"; iframe.id="newCompilationIframe";