Make all refs relative to base tag.