# Redirect url in natural

**URL:** <https://techcommunity.softwareag.com/t/redirect-url-in-natural/202776>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [February 8, 2019, 5:53pm UTC](https://techcommunity.softwareag.com/t/redirect-url-in-natural/202776 "2019-02-08T17:53:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [February 8, 2019, 5:53pm UTC](https://techcommunity.softwareag.com/t/redirect-url-in-natural/202776/1 "2019-02-08T17:53:42Z")

</div>

How terminate session and after redirect ulr for page login in Natural for ajax??

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [February 13, 2019, 8:18am UTC](https://techcommunity.softwareag.com/t/redirect-url-in-natural/202776/2 "2019-02-13T08:18:06Z")

</div>

Hi Cleyton,

you have several options to do this. Here are 2 suggestions:

1. Have a custom disconnect page. When a session is terminated - for instance from your Natural program - per default a redirect to the disconnect page is done. You can have a custom disconnect page, in which you for instance add a button “To Logon page” and then redirect to the logon page when the button is pressed. You can also do an automatic redirect without button if you add an adapter listener to the disconnect page.

2. If you have exactly 1 page with a “Logout” button, you could add an adapter listener to this page. When the button is pressed you would do a redirect to the logon page using the Java API.  
Use method openPageInTarget or openCISPageInTarge with \_top.

Solution 1) is a general redirect whenever the diconnect page is called. Solution 2) just applies to a specific page of your application.

Is one of the solution suggestions an option for you?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:42pm UTC](https://techcommunity.softwareag.com/t/redirect-url-in-natural/202776/3 "2021-04-02T15:42:17Z")

</div>


