Apps that are reverse-proxied need to be able to support that; RStudio either doesn’t or isn’t configured to preserve the URI.
I think there’s an open issue requesting a feature so that proxy
can rewrite redirect locations for situations where backends don’t support reverse proxying.