From 4cd63a4e62cd211e624da2d9b7c2869bc2619647 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Fri, 22 Mar 2019 08:42:28 +0200 Subject: [PATCH] Mention browser history stack manipulation in docs --- doc/frontend/browser.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/frontend/browser.md b/doc/frontend/browser.md index 210e5711..08d3b4b1 100644 --- a/doc/frontend/browser.md +++ b/doc/frontend/browser.md @@ -25,3 +25,14 @@ all the calls. Wrapper `reitit.frontend.easy` is provided which manages a router instance and passes the instance to all calls. This should allow easy use in most applications, as browser anyway can only have single event handler for page change events. + +## History manipulation + +Reitit doesn't include functions to manipulate the history stack, i.e. +go back or forwards, but calling History API functions directly should work: + +``` +(.go js/window.history -1) +;; or +(.back js/window.history) +```