Prerouting rule blocks Unifi Hotspot Portal

We got the task to change the IP of the Guest Network that runs on Unifi, portal on port 8843.
Both ISPs are on the same interface on the mikrotik. I created an IP mangle rule:
chain = “preerouting” sourse-adr-list = “192.168.50.0/24” action = “mark routing” new routing mark = “245”
And the route:
Dst adresses: 0.0.0.0.0/0 gataway=ISP provider adress , Routing Mark=245

But after these changes new guest can’t reach the hotspot portal page, I don’t know why. The same subnet, only public ip. And of course we opened 8843 ports on the firewall and I still see the traffic when users try to access the Hotspot page. Please help

It is because mark routing is done for ALL traffic and you should not have done it for traffic towards your portal!
Unlike in RouterOS v6, when you do route marking, it makes an absolute decision. All traffic has to be routed using that specified table, and when your portal is not reachable via that table, it will not work.

Thanks for the answer. Can you please help to fix it or specify what kind of changes in rule or route table i should to apply?