diff --git a/.vscode/settings.json b/.vscode/settings.json index 436bc4c..68dfd88 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,6 +27,7 @@ "cSpell.words": [ "HSTS", "iframe", + "iframes", "nlog" ] } \ No newline at end of file diff --git a/Controllers/BackButtonController.cs b/Controllers/BackButtonController.cs deleted file mode 100644 index 4888e16..0000000 --- a/Controllers/BackButtonController.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace WebDLanding.Controllers; - -/// -/// Back Button Support Controller -/// -public class BackButtonController : Controller -{ - private readonly ILogger _logger; - - public BackButtonController(ILogger logger) - { - _logger = logger; - } - - public IActionResult Index() => View(); -} diff --git a/README.md b/README.md index 8ff802b..1bda468 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,41 @@ # WebDLanding -Web-Direct landing page to suppress annoyances and route users to the appropriate solution. +Web-Direct Landing page for Wizard Web-Direct deployed solutions. + +## Features + +- `onbeforeunload` support. + +Best effort to warn users that refreshing the page, or otherwise navigating away will lose their place in the system. Support varies by browser. + +- Back button suppression / integration. + +Avoid back button taking the user out of the solution, and provide support for solutions to listen to the native browser back button and react accordingly. + +## Back Button Integration + +WebDLanding provides an opportunity for back button support to be added, by posting a message to child iframes that the back button was pressed. + +A sample of the web viewer content that must be provided on each layout: + +```html + + + + + + + + + + + + + +``` diff --git a/Views/BackButton/Index.cshtml b/Views/BackButton/Index.cshtml deleted file mode 100644 index c41adca..0000000 --- a/Views/BackButton/Index.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@{ - Layout = null; -} - - - - - - - - - - - - - \ No newline at end of file