External links warnings - Waiviogit/waivio GitHub Wiki

When a user clicks on a link in any place (post, page etc), we should check the following:

  • If the link belongs to any site within the Waivio platform (social sites etc.), no modal window or additional messages are needed.
  • If we have a link object for the URL and its safety rating is 5 stars (values 9–10), then we also skip the modal window and additional messages.
  • If the rating is 3–4 stars (values 5–8), we display a modal window with the warning: "Attention! This link is mostly safe, but minor risks may exist." along with basic information.
  • If the rating is 1–2 stars (values 1–4), we display a modal window with a stronger warning: "Caution! This link has a low safety rating and may be dangerous." along with basic information.
  • If there is a link object but no safety rating, or if there is no link object at all, we display a warning about navigating to an external resource: "Attention! You're about to leave the Waivio platform."

Case 3-4 stars (values 5–8)

Attention! This link is mostly safe, but minor risks may exist. Do you want to proceed to the external site? Status: Caution Advised Community rating: {stars} Details: {link object} Confirm / Cancel Image

Case 1-2 (values 1–4)

Modal window about dangerous link External link Caution! This link has a low safety rating and may be dangerous. Do you want to continue? Status: Dangerous Community rating: {stars} Details: {link object} Confirm / Cancel

Image

Case no link object or rating

External link Attention! You're about to leave the Waivio platform. Do you want to proceed to the external site? Note: We do not have a community rating for this site. Proceed with caution when visiting external links.

Image