Skip to content

'Send by email' removes query string parameters #4662

@effectivetom

Description

@effectivetom

Category

Bug

Expected or Desired Behavior

Using the 'Send by email' function should preserve existing query string parameters.

Observed Behavior

The 'Send by email' function removes all existing query string parameters when generating the link used in the email notification.

Steps to Reproduce

  1. Deploy a SPFX web part which utilises custom query string parameters to a SharePoint Online page
  2. Load the page and select the 'Send by email' action
  3. Copy or follow the link in the resulting email

Our scenario

We've built a SPFX application with around 12 custom web parts. Most of them rely on query string parameters to load data from a specific record in a SharePoint list. The 'Send by email' action is stripping out these parameters, resulting in broken links being emailed to users.

Example original URL:

/sites/our_site/SitePages/Manage-Record.aspx?recordId=123

After using 'Send by email':

/sites/our_site/SitePages/Manage-Record.aspx?from=SendByEmail&e=BAHit3hdbEKp8eqxC5vFLw&at=9

Note that the recordId parameter is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:invalid-not-dev-issueThis repo+issue list is for SharePoint development topics. Non-dev issues will be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions