Url fixes

Fixes bugs when deploying to a url prefix, E.g. /omero/figure.