Fix asset selection when in a non-root servlet context