question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: history.back()

See original GitHub issue

Is there a recommended way for doing history.back() with flow-router?

Maybe also a recommended way for clearing the history…

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
arunodacommented, May 18, 2015

history.back() works pretty well with flow router. I don’t know there is a browser API to clear the history.

1reaction
DrZivilcommented, Jul 13, 2016

var route = FlowRouter.current(); if(backRoute.oldRoute){ console.log(‘back’, route.oldRoute.name); FlowRouter.go(route.oldRoute.name); }else{ FlowRouter.go(‘home’); }

this works pretty well for me so far…

Read more comments on GitHub >

github_iconTop Results From Across the Web

History.back() - Web APIs - MDN Web Docs - Mozilla
The History.back() method causes the browser to move back one page in the session history. It has the same effect as calling history.go(-1) ......
Read more >
How to check if the user can go back in browser history or not
Short answer: You can't. Technically there is an accurate way, which would be checking the property: history.previous. However, it won't work.
Read more >
How to use js history.back(1) in Chrome - Microsoft Learn
How to use js history.back(1) in Chrome. Hi, We have just migrated from 2012 to 2016 SSRS reports. So far it was no...
Read more >
JavaScript - Execute Actions after Window.history.back()
This is how browsers are designed to work. Leaving a page immediately stops all script execution and closes all network connections.
Read more >
How to make browser to go back to previous page using ...
Method 1: Using history.go() method: The go() method of the window.history object is used to load a page from the session history.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found