I have a New Post page that’s only available to logged in users. After users create a post, they go to the Post page, which has a Back button. I’d like to prevent the New Post page from being added to router history so the Back Button on the Post page goes back to where they started from.
[ Starting Page (any page)] —> [ New Post Page ]—> [ Post Page ]
On the Post Page, I’d like the back button to go back to Starting Page, but the history:false option in routes.js isn’t working. It always brings users back to the New Post page.
@deejay I see that, but the Start Page could be any page, so I can’t add it as a specific href in the back link on Post Page. Also, sometimes people will go to a Post page directly (when reading). The only time I want to prevent going back to the previous page is when a user has just created a new post.
The documentation on Routes seems to indicate that it’s possible to control whether or not a page is added to router history. I just can’t get it to work.