Feel free to switch views


#1

I have now published an article, how to return to the home page, note that the current view has three levels from the home page. What I’m doing now is normal in the browser, but bug in the mobile phone only returns the previous page and does not return to the home page. For example, I now have a, b, c, d, four views, I opened three pages in the b view, how to return to A view Home


#2

#3

Please, post you sintaxe…


#4

Is such that,The user posted an article, then I want to use javascript to let the user return homepage,At least two pages. If I use app.router.back(), only one page will be returned.Thank you :grinning:


#5

Look at the next floor. Thank you for your answer


#6

Do you have a better solution?


#7

I dont have your sintaxe in post.


#9

Code has been pasted


#10

@nolimits4web @JhowJhoe


#11

Try change your sintaxe to:

app.router.navigate('/', {force:true});


#13

So it will reload the homepage


#14

I want it to return to the home page without refreshing the page


#15

@nolimits4web Author, hello, I want to use js to operate, not click, can this be solved?


#16

Yes, view.router.back('/', {force: true}) is the solution. If doesn’t work then there is something wrong in your routes or other places. Would be good if you can upload your app somewhere so we can check it live