form redirect to content url | Community
Skip to main content
New Participant
October 16, 2015
Solved

form redirect to content url

  • October 16, 2015
  • 1 reply
  • 654 views

so i have a form on a page that grabs from the usergenerated content, the url for such a page is:

/content/usergenerated/content/testpage/1382123150641_user_1.form.html/content/testpage/view

I want to redirect to the editing version of the form so i set up a hidden field with element name :redirect and value 

${slingRequest.requestURI}.form.html/content/testpage/edit

In previous versions of 5.4 this would actually grab the url but in 5.6.1 it only gives the suffix "/content/testpage/view".  anyone else finding a problem on getting the true resource path?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by quo-so

found out that the slingrequest is taking the request from the component after editing and not the request for the page.

1 reply

quo-soAuthorAccepted solution
New Participant
October 16, 2015

found out that the slingrequest is taking the request from the component after editing and not the request for the page.