I got a form that creates a support ticket and want to redirect to the support page after the form is submitted successfully. So I’m using the sc success dynamic event and set a redirect to the right url using the Browser element:
When this dynamic event is disabled the id of the newly created database insert (scf_new_support_ticket.data.insert_support_ticket.identity) is output to the page properly and shown in the console, however, it’s not added to the browser.goto url when the dynamic event is enabled. The redirect does work, but without the id as a query parameter.
The value is just an id, so a number.
I tried the server redirect too, the correct url is returned in the Network tab, but the actual redirect doesn’t happen… No idea why, no errors are thrown.
I was using he browser element from the layout page to perform the redirect, which didn’t work.
Using another browser element on the content page now solved the issue.
Is this a bug @teodor? The browser element from the layout page works fine for all other browser action on all my content pages…
Couldn’t get it working still with the server side redirect by the way.
Thanks for your help @sid and @ben, appreciate it.
Like the above two posts suggests, there is something wrong on your page. Like you say, its working on other content pages, so it makes this more likely.
Maybe try removing the browser component now and try again?
The problem was that the browser component in the layout page had been pushed down by server connect elements. I moved it back to the top, right after the body opening tag and that solved the problems
Thanks to all for your replies and suggestions, really appreciate it!