Score:0

Webform Confirmation settings on form submission not working

ng flag

I am using Acquia site studio components for web pages. In all the pages I have a pop-up with a webform submit button to enter to the site.

In Webform confirmation settings I have selected the option - URL (redirects to a custom path or URL) and in the confirmation URL textfield [current-page:url]?[current-page:query] is given.

On form submission, it is expected to redirect to the current page with the current query given in the URL. But, it is redirecting to previously used query parameter of the current page.

Application is using Varnish and core internal cache. I am not sure the [current-page:url]?[current-page:query] is getting cached.

Steps: Webform will be loaded in a modal while accessing the url http://localhost/products?key=111 on click on submit button the expected result is to land on the same page with the same query parameter but, it is redirecting to http://localhost/products?key=222 where the key=222 ]

Any suggestions/alternate solution would be appreciated.

Thank you.

id flag
This still may be correct: https://drupal.stackexchange.com/questions/158003/redirect-to-another-page-on-webform-submit-using-current-pagequery-token
ng flag
Thank you for the link But that didnt worked
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.