Page publishing not working in Page Editor after upgrading to Service Pack 18 (6.5.18.0)
This is a question if I have found a good solution to the issue and maybe someone will find it also helpful.
Error Message when using AEM Publish Workflows:
404 RESOURCE AT '/CONTENT/DE/STARTSEITE/TEST/DEVTEST/COMPONENTS/PAGE//LIBS/WCM/CORE/CONTENT/SITES/PUBLISHPAGEWIZARD.HTML' NOT FOUND
experience-manager-65/release-notes
Known issues
Page publishing not working in Page Editor after upgrading to Service Pack 18 (6.5.18.0)
After you upgrade an instance of AEM 6.5.0.0—6.5.17.0 to AEM 6.5.19.0, when you click **Publish Page** inside the Page Editor, you are redirected to a URL that does not exist.To work around this issue, do one of the following:
Remove the following “path” property.
/libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/publish/granite:data
Paste the correct URL directly into the browser.
Code with AEM 6.5.18 SP
/libs/cq/gui/components/authoring/editors/clientlibs/core/js/actions/publish.js
function navigateToPublishWizard(activator, path, editMode, schedule) {
var params = "";
if (path && typeof path === 'string' && path.length > 0) {
params += "item=" + path;
}
if (params.length > 0) {
location.href = encodeURIComponent(activator.data('url')) + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : "");
}
}
// Replace OLD
location.href = encodeURIComponent(activator.data('url')) + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : "");
// Working NEW
location.href = activator.data('url') + "?" + params + (editMode ? ("&editmode") : "") + (schedule ? ("&later") : "");