Primarily to service {T146596}, toast messages should be able to be links (optionally).= Problem
As a user when I am automatically redirected away from a page, Should be a simple extra parameterI see a toast but there is no way to return to the `Toast.show` functione page I was redirected from.
{F5056489}= Suggested solution
[] A toast ** should** contain at most one link.Primarily to service {T146596}, Practically speaking,toast messages should be able to be links (optionally). to provide an underlined link, we should allow toasts to render HTMLShould be a simple extra parameter to the `Toast.show` function.
= Acceptance criteria
[] When displaying a toast any other tags e.gI visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Obama I see a toast. strong/em/b/i should appear unstyled in the messageWhen I click on that toast I am taken to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Obama&redirect=no
[] Treatment for such optional link should be an underline.
[] Clicking the entirChange the toast wording to make it clearer the toast should take the user to the destinationis actionable
= Developer notes
[] If a toast is incorrectly used outside the usage instructions of using one link and displays more than one link, then clicking the toast should take the user to the first link.We want to make this a generic capability so future features can also make use of it
First use-case of this system would be
- Redirect toast message should have an tap action to go to the redirect page with ?redirect=no[] Toast.show function should accept a link as a second parameter.
[] When clicking the toast the user is navigated to that link
[] When a toast has an associated action a 'show' label appears on the right hand side of the toast
[] Clicking the entire toast or show should take the user to the destination