<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>

CC BY-SA 3.0
2017-05-16T21:54:37.940Z
Entirely possible I'm missing something, but `craft()->request->redirect()`?
Brad Bell
CC BY-SA 3.0
2017-05-17T21:46:02.823Z
Oh, I kind of assumed the element action made a AJAX request? In which method would you do it? `performAction()`?
Fred Carlsen
CC BY-SA 3.0
2017-05-17T21:48:01.387Z
Oh, you're probably right. `includeJs` some JavaScript to do the redirect in `performAction`?
Brad Bell
<elementtype><elementaction>
Redirect from element action
# 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

