# \[WiFiConnect\] Extend captive portal with a URL callback / redirect after successfully connected to the internet

**URL:** <https://forums.balena.io/t/wificonnect-extend-captive-portal-with-a-url-callback-redirect-after-successfully-connected-to-the-internet/354046>\
**Category:** Project help\
**Tags:** wifi\
**Created:** [March 7, 2022, 8:28pm UTC](https://forums.balena.io/t/wificonnect-extend-captive-portal-with-a-url-callback-redirect-after-successfully-connected-to-the-internet/354046 "2022-03-07T20:28:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![elsevero](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/elsevero/32/5697_2.png) [@elsevero](https://forums.balena.io/u/elsevero)\
**Post date:** [March 15, 2022, 12:02am UTC](https://forums.balena.io/t/wificonnect-extend-captive-portal-with-a-url-callback-redirect-after-successfully-connected-to-the-internet/354046/10 "2022-03-15T00:02:48Z")

</div>

Hi there @mpous ,

I think I picked the wrong lead due to the fact that I was missing [the WiFi Connect diagram](https://github.com/balena-os/wifi-connect/blob/master/docs/state-flow-diagram.md).

The issues is that the React (UI part of the Captive Portal) sends only the credentials to the WiFi (SSID & Password) and on the server side (RUST) [the captive portal is stopped forcefully](https://github.com/balena-os/wifi-connect/blob/master/src/network.rs#L219)

Although I have created a reply [on this thread](https://forums.balena.io/t/raspberry-pi-wifi-access-point/1255/11) since its more related to the actual context and hope I’d get attention of [josephroberts’s](https://forums.balena.io/u/josephroberts) kind interest to take a look and offer me an input about that 🥺

After multiple tryouts and wrong leads I know that I only need to figure out how to avoid the rust to kill the captive portal just before getting the response from the `/connect` endpoint.

---

_[View the full topic](https://forums.balena.io/t/wificonnect-extend-captive-portal-with-a-url-callback-redirect-after-successfully-connected-to-the-internet/354046)._
