= Problem
As a user when I am automatically redirected away from a page, I see a toast but there is no way to return to the page I was redirected from.
= Suggested solution
Primarily to service {T146596}, toast messages can also carry actions. Pass url and label as 2 additional parameters to the `Toast.show` function.
= Acceptance criteria
[x] When I visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Obama I see a toast. When I click on that toast I am taken to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Obama&redirect=no
[x] Change the toast wording to make it clearer the toast is actionable. The new toast will still say :
> Redirected from \"$1\"
but it should be accompanied by the action
> Show redirect (should be just a link per https://phabricator.wikimedia.org/T150189#5384918)
= Design
{F29782378}
==== Other toast designs for reference
Default toast without action
https://zpl.io/1CDO7m
Short toast with one action
https://zpl.io/2kTf7Y
Loong toast with long action
https://zpl.io/rQqXy
Two line with action
https://zpl.io/CroBW
= Developer notes
We want to make this a generic capability so future features can also make use of it
[] The Thanks extension has a working example here: https://en.m.wikipedia.org/wiki/Special:MobileDiff/906429341
{F29782394}
[] When a toast has an associated action a 'show' label appears on the right hand side of the toast
[] When clicking the toast action the user is navigated to that link ?action=edit&redirect=no
= QA steps
Test with https://en.m.wikipedia.beta.wmflabs.org/wiki/Barack