Problem bring in links from email messages



  • Problem bring in links from email messages

    when i get link with messages twitter verify
    It is brought :

    https://twitter.com/i/redirect?url=https%3A%2F%2Ftwitter.com%2Faccount%2Fconfirm_user_email%2F1227679166%2FHGAG6-C4F92-148915%3Ft%3D1%26cn%3DcmVzZW5kX2NvbmZpcm1hdGlvbl9lbWFpbA%253D%253D%26sig%3D5d3d69aa6585bc15c32ebd45d04aecfa263d85e6%26iid%3Dabb9fbef13f84e1f9d432ef792472f28%26ac%3D1%26autoactions%3D1489151164%26uid%3D1227679166%26nid%3D244%2B308&amp
    

    But the link in the message

    https://twitter.com/i/redirect?url=https%3A%2F%2Ftwitter.com%2Faccount%2Fconfirm_user_email%2F1227679166%2FHGAG6-C4F92-148915%3Ft%3D1%26cn%3DcmVzZW5kX2NvbmZpcm1hdGlvbl9lbWFpbA%253D%253D%26sig%3D5d3d69aa6585bc15c32ebd45d04aecfa263d85e6%26iid%3Dabb9fbef13f84e1f9d432ef792472f28%26ac%3D1%26autoactions%3D1489151164%26uid%3D1227679166%26nid%3D244%2B308&t=1&cn=cmVzZW5kX2NvbmZpcm1hdGlvbl9lbWFpbA%3D%3D&sig=8cf4ad5d6e1989c66db3a083cefca28d88f21a70&iid=abb9fbef13f84e1f9d432ef792472f28&uid=1227679166&nid=244+308
    
    

    deleted :

    t=1&cn=cmVzZW5kX2NvbmZpcm1hdGlvbl9lbWFpbA%3D%3D&sig=8cf4ad5d6e1989c66db3a083cefca28d88f21a70&iid=abb9fbef13f84e1f9d432ef792472f28&uid=1227679166&nid=244+308
    

    And replaced by :

    amp
    


  • @Diya.3rif twitter email is a little bit tricky. They have fake url in email.
    Anyway I prepared code for you that extracts url param from original url.
    It uses split function to exctract query param like this

    [[URL]].split("url=")[1] 
    

    and decodeURIComponent to decode it.

    decodeURIComponent([[URL_PART]])
    

    See this project 0_1489249757850_parsetwitterurl.xml


Log in to reply