Updated parsing of path coming from widget js.