# REST API Loginservice

**URL:** https://community.ofelia.com/t/rest-api-loginservice/7764
**Category:** Q&A
**Created:** [12 September 2016 14:12 UTC](https://community.ofelia.com/t/rest-api-loginservice/7764 "2016-09-12T14:12:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mzhu](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/mzhu/32/827_2.png) [@mzhu](https://community.ofelia.com/u/mzhu)
#### Post date: [12 September 2016 14:12 UTC](https://community.ofelia.com/t/rest-api-loginservice/7764/1 "2016-09-12T14:12:53Z")

</div>

I created a custom login page using jquery I could successful login using the rest api but I cant understand very well the redirect option of the REST API, after changing the redirect option to true and add the redirectURL to “…/bonita/portal” I see that the response is a html page but how can I use that information so I can redirect the user to the portal page?

What Im trying to do is a custom login page were if the user put the correct credentials the system redirect them to the bonita portal

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [12 September 2016 23:51 UTC](https://community.ofelia.com/t/rest-api-loginservice/7764/2 "2016-09-12T23:51:00Z")

</div>

Use the full URL

I.e. [http://servername](http://servername):port/bonita

Don’t add portal, it should go to the right page automatically.

regards  
Seán

_PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply._

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [12 September 2016 19:23 UTC](https://community.ofelia.com/t/rest-api-loginservice/7764/3 "2016-09-12T19:23:53Z")

</div>

Have you tried the full url?

I.e. [Http://servername](Http://servername):port/bonita

Don’t add portal, it should go to the right page automatically.

Regards  
Sean

---

<div class="post-metadata">

### Author: ![mzhu](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/mzhu/32/827_2.png) [@mzhu](https://community.ofelia.com/u/mzhu)
#### Post date: [12 September 2016 21:37 UTC](https://community.ofelia.com/t/rest-api-loginservice/7764/4 "2016-09-12T21:37:22Z")

</div>

Thanks for your comment and as you say if I put the complete url the redirection works perfectly.
