How to set a default page within hotspot MikroTik to be open automatically after wifi connect

I’m trying to set a Default HTML Page to be opened after wifi connects automatically. Kinda like the Login page. I’ve tried writing a few javascript lines to make the redirect work but after redict, there is no content within my HTML.

Is it possible to set an HTML page instead of the login page to be opened directly after wifi connect with MikroTik?

What would happen after? How would the user be logged in?

Don’t redirect. You can use login.html as your web page.