fix absolute url generation