View in portal link seems broken

Ok, what am I doing wrong here?

View in Portal link is not working after I updated.
I’m on version 4.5.8

The link from the invoice page
https://mydomain/ninja/public?erttertge54wrwrtrt/client

.env
APP_URL=https://mydomain/ninja/public/

my.htaccess
<IfModule mod_alias.c>
RedirectMatch 301 ^/ninja/$ https://mydomain/ninja/public/
</IfModule>

I have no idea what happened but when I click “view in portal” it just redirects to the dashboard. Anyone else seen this before

Try removing the value for ‘website’ on Settings > Client Portal