fix the indexOf of stackoverflow, searching the absolute URL