Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

form redirect to content url

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

0 Replies

Avatar

Correct answer by
Level 2

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