LPS-33760 Add portal context to the replaced relative urls