SharePoint 2019 URL in Alert Email wrong

jfgriff 206 Reputation points
2021-01-10T11:04:36.687+00:00

We have a new SharePoint 2019 web application that is a site of document libraries. Each user has a document library where reports are posted. When a report is posted, the user receives an email alert. The email alerts are the SharePoint alerts setup for 1x time daily (not immediate).

The problem: the email alert has the wrong URL. If you hover the hyperlink in the alert email, it looks correct. But if you click on the hyperlink you get a 404 page not found. Checking the hyperlink settings you can see that any position in the file name that has a space, the email alert added a %25 in the hyperlink. So instead of having simply a %20 for the space, it has %25%20. (see attached).

I am wondering if anyone else has experienced this behavior or has any ideas how to resolve?

Thanks.

55056-image.png

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

Accepted answer
  1. jfgriff 206 Reputation points
    2021-01-13T13:16:49.093+00:00

    This site was migrated from SharePoint 2016. The name of the Alert Template was blank on each alert. I ran a PowerShell script to set the Alert Template name and it resolved the problem.

    Thanks for the thoughts and ideas.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2021-01-11T05:55:10.317+00:00

    Hi @jfgriff ,

    This issue also seems to occur in SharePoint online when the url has space in it:

    https://answers.microsoft.com/en-us/msoffice/forum/all/sharepoint-online-alerts/61ec330b-9566-4983-be23-51dfc61cfcf4

    Currently the best answer is to avoid using spaces in your urls since %25 representing “%” followed by 20 to create %20 = space character, which caused the issue.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.