We have a problem that I have never seen. We had two AAMs for a site. Default was set to the server namehttp://SERVER. Intranet was set to http://url.domainname.com. The SharePoint server was sending alerts to users using the internal URL. Meaning when someone got the alert email, the link to the list was the internal URL. No one from outside could click the link because there was no such thing in public DNS. So I removed the default and replaced with the intranet value. At this point it was justhttp://url.domainname.com. When I changed it one user lost complete access to the site. The logs showed the correlation ID as the following:
SPAudienceValidator: Audience uri 'http://server/Lists/Calendar/DispForm.aspx is not valid for the context
I reverted back to the original AAM and the user was again able to access.
I guess I have two questions. One is how to fix the alert email to have the intranet URL so outside people can click it to get to it. It is the link at the top of the alert email
Modify my alert settings | View Calendar | View Documents | Mobile View
Also if we do need the internal server name as another AAM how would we fix the access problems audience uri.
Thanks in advance.