Problem with $viewButton and $viewLink in self-hosted

Hi! I’m using self-hosted Invoice Ninja v.4.4.3

The problem is that the link generated by $viewLink and $viewButton in Templates & Reminders Settings, both for invoices and quotes seems to be not working. I didn’t try with proposal and payment notifications but I guess there will be no difference.

It generates a link like this: https://mydomain.com/?[view-token]/view and when the client clic on it redirects to /login page. Also the password protect invoice option is disabled in Client Portal Settings, so that should not be the cause.

If I change this url manually to: https://mydomain.com/view/[view-token] everything seems to work fine and no login is required.

What could be the solution to this?

From the link it looks like you’ve set a value for website/iframe on /settings/client_portal, removing it should help.