# Redirect from Modal

**URL:** <https://community.piwik.pro/t/redirect-from-modal/1410>\
**Category:** API & integrations\
**Created:** [December 21, 2022, 8:49am UTC](https://community.piwik.pro/t/redirect-from-modal/1410 "2022-12-21T08:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calle\_Khan](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/calle_khan/32/1052_2.png) [@Calle\_Khan](https://community.piwik.pro/u/Calle_Khan)\
**Post date:** [December 21, 2022, 8:49am UTC](https://community.piwik.pro/t/redirect-from-modal/1410/1 "2022-12-21T08:49:05Z")

</div>

Hello o/  
Is it possible to configure the consent form to redirect to another page after the user confirm/decline

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [December 21, 2022, 9:46am UTC](https://community.piwik.pro/t/redirect-from-modal/1410/2 "2022-12-21T09:46:11Z")

</div>

Hi 🙂 You can create custom html tags to handle the redirect. The trigger would be based on the default datalayer events (`stg.rejectAllClicked`, `stg.agreeToAllClicked`).

---

<div class="post-metadata">

**Author:** ![Calle\_Khan](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/calle_khan/32/1052_2.png) [@Calle\_Khan](https://community.piwik.pro/u/Calle_Khan)\
**Post date:** [December 21, 2022, 12:48pm UTC](https://community.piwik.pro/t/redirect-from-modal/1410/3 "2022-12-21T12:48:35Z")

</div>

Many thanks, this is working.
