redirect from formprocessor post webscript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2011 08:16 AM
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,
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,
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2011 12:13 AM
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
This will solve your issue of redirection
