Body: <p>I'm trying to process multiple elements in a custom element action, and then redirect the CP user to a url.</p>
  
  <p>How would I do that?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-16T21:54:37.940Z
Comments.Text: Entirely possible I'm missing something, but `craft()->request->redirect()`?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-17T21:46:02.823Z
Comments.Text: Oh, I kind of assumed the element action made a AJAX request? In which method would you do it? `performAction()`?
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-17T21:48:01.387Z
Comments.Text: Oh, you're probably right. `includeJs` some JavaScript to do the redirect in `performAction`?
Comments.UserDisplayName: Brad Bell
Tags: <elementtype><elementaction>
Title: Redirect from element action
ThreadText: # Redirect from element action
  
  (Asked by: username_0 on 2017-05-16)
  
  I'm trying to process multiple elements in a custom element action, and then redirect the CP user to a url.
  
  How would I do that?
  
  **Tags:** elementtype, elementaction
  
  > **Comments:**
  > **username_1**: Entirely possible I'm missing something, but `craft()->request->redirect()`?  
  > **username_0**: Oh, I kind of assumed the element action made a AJAX request? In which method would you do it? `performAction()`?  
  > **username_1**: Oh, you're probably right. `includeJs` some JavaScript to do the redirect in `performAction`?  
  
  ---
  
  ## 0 answers
  
  