[APPLICATIONS][WORKERS][FIX] Fixed API URL detection to work with commit af6b4351c9ebca26b61922154b3cbff25c7721ec