Skip to content

Update metadata links in emails to support formatter views #8949

@ianwallen

Description

@ianwallen

Is your feature request related to a problem? Please describe.
Related to the discussion on this PR #8931

Emails with links currently go to the metadata api view which is a restricted format which was intended to be used in browsers with limited capabilities. i.e. PDF printer.
The email link was switched to this link because OIDC logins will use the # fragment during the login process and it will end up redirecting to the search main page instead of the record in the link.
So the goal would be to have the link sent the user to main record display instead of the api view display as it is more user friendly.

Describe the solution you'd like
As described in the PR comment the following main changes would be required.

  • The api record view would be updated to support a formatter view parameter to be redirected to. i.e. ?formatter=defaultView or ?formatter=full. (The format of the url may need to be discussed) If this parameter exists then it would validate that the formatter exists and if it is valid then it would return a redirection to the record using the correct formatter.
  • It would also require the formatter configuration to have an option to identify the formatter to be used in email links. That could be done in the formatter configurations.
  • Update all locations where a metadata link is created in an email to apply the formatter parameter in the link if there is an email formatter configured.

Describe alternatives you've considered
No other alternatives have been identified.

Additional context
Note sure if this option should also be applied to permalinks?

Reference the following for more details.
#8931

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions