Problem with showing all alert instances after update to Grafana 10

I am running grafana on k8s with reverse proxy.

After updating grafana version from 9.5.3 to 10.3.3,
“showing all alert instances button” is not working.

Alert Rules > Select Alert Rule > Matching instances > show all ** alert instances

The sub path is appended twice.

9.5.3. Version Path
https://(domain)/example/alerting/grafana/~

10.3.3 Version Path
https://(domain)/example/example/alerting/grafana/~

My Grafana config

root_url = %(protocol)s://%(domain)s:/example
serve_from_sub_path = true