Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

general: Safe URL pipe #857

Merged
merged 1 commit into from
May 31, 2022
Merged

Conversation

zannkukai
Copy link
Contributor

Allow to specify that URL are safe. In this case, Angular doesn't add an
"unsafe:" protocol string on the href link.

Closes rero/rero-ils#2893.

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

How to test?

Adds a item URL with a "rtsp" protocol and check all screens where this url could be displayed :

  • item detail view
  • holdings panel view
  • ...

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai requested a review from jma May 24, 2022 14:59
@github-actions github-actions bot added f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface labels May 24, 2022
Allow to specify that URL are safe. In this case, Angular doesn't add an
"unsafe:" protocol string on the href link.

Closes rero/rero-ils#2893.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@Garfield-fr
Copy link
Contributor

Maybe put this pipe in NG-Core?

@zannkukai zannkukai merged commit 972884d into rero:staging May 31, 2022
@zannkukai zannkukai deleted the zan-fix-issue-2893 branch May 31, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface f: search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Items (UI) : rtsp procole is flagged as "unsafe" by Angular
5 participants