Skip to content

Clicking Back button in Chrome affects my Vue app in cross-origin iframe instead of parent webpage #3265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markon1 opened this issue Jul 24, 2020 · 1 comment

Comments

@markon1
Copy link

markon1 commented Jul 24, 2020

Version

3.3.4

Steps to reproduce

So basically I append an iframe with my Vue app to mail.google.com page, and I do all of the routing inside my Vue app with vue-router.
Strange thing is, when I click the Back button in my browser (Chrome), it takes my Vue app in iframe one page back instead of doing that with parent page (mail.google.com).
How can I make it that clicking browser’s back button affect only parent page (mail.google.com) and not my Vue app in appended iframe?

What is expected?

Clicking on Chrome's Back button should navigate parent webpage one step backwards.

What is actually happening?

Clicking on Chrome's Back button navigates my iframe with vue-router app instead.

@posva
Copy link
Member

posva commented Jul 24, 2020

This is simply how it works and cannot be controlled.

@posva posva closed this as completed Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants