Set the [RFC 8910 DHCP option](https://www.rfc-editor.org/rfc/rfc8910.html) to the URL of the captive portal in the unauth DHCP template.