obtaining direct URL on click