fix URLs when not within iframe