Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
218 stars 143 forks source link

"Wrong Link" error in "Claim your free game rental email" #14

Open not-not-kevin opened 6 years ago

not-not-kevin commented 6 years ago

In the demo when I click on the link in the "Claim you free game rental email" I get the error:

"Wrong Link

You have clicked on an invalid link. Please make sure that you have typed the link correctly. If are copying this link from a mail reader please ensure that you have copied all the lines in the link."

If I copy and paste the URL in the email into my web browser it works successfully.

Repo Steps:

  1. Go to https://wingtipgamesb2c.azurewebsites.net/Invitation/Create
  2. Fill out the form. (I choose "Policy link" redemption method.)
  3. Click on link in email.

Expected Results:

Actual Result:

parakhj commented 6 years ago

I can't repro, but still looking into it. Thanks for reporting.

chrispadgettlivecom commented 6 years ago

Hi @webster354

Are you experiencing this with the Outlook desktop client?

SendGrid is replacing the policy link (to login.microsoftonline.com) with a click tracking link (to ct.sendgrid.net) that is longer than the maximum number of characters supported for links by the Outlook desktop client.

It isn't occurring with the Outlook browser client.

We'll determine whether we can disable click tracking to work around this.

not-not-kevin commented 6 years ago

I get the error in both Outlook desktop client and Outlook web mail (in Internet Explorer).

I just tried using Outlook web mail in Chrome and it works. IE issue?

chrispadgettlivecom commented 6 years ago

Confirmed.

It is an issue in the desktop client and Internet Explorer 11 (and below).

It is working in Chrome, Edge, and Firefox.

srashtisj commented 5 years ago

I faced the same issue with outlook desktop client - I shorten the shared URL, it worked fine after that.