cancel
Showing results for 
Search instead for 
Did you mean: 

redirect from formprocessor post webscript

romschn
Star Collaborator
Star Collaborator
Hello All,

I want to navigate user to some specific page once the content is created from share.

I am using below code to redirect user from form.post.json.js.
This script is present at following location : \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\forms

status.redirect = true;
status.code = 303;
status.location = "share/page/site/my-site/my-page";

But it is giving below error on console.
Exception from executeScript - redirecting to status template error: 08090009 Script url /api/type/cm_content/share/page/site/my-site/my-page does not map to a Web Script.

Basically, what I am trying to achieve is - redirect user to some share page from alfresco webscript.

Could anyone please help me on this at the earliest? What am I missing?

Thanks,
1 REPLY 1

shahsnehal
Champ in-the-making
Champ in-the-making
Whenever you use Form Processor to create content, Share side java script is responsible for redirect. You need to update  method "_navigateForward" in "tomcat\webapps\share\components\create-content\create-content-mgr-min.js" file.

This will solve your issue of redirection