Skip to content
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

Refresh iframe but stay on the current URL #2008

Closed
alanmilinovic opened this issue Oct 6, 2024 · 4 comments
Closed

Refresh iframe but stay on the current URL #2008

alanmilinovic opened this issue Oct 6, 2024 · 4 comments

Comments

@alanmilinovic
Copy link

Organizr Version: V 2.1.2490
Branch: Master
WebServer: Nginx
Operating System: Debian

Problem Description:

If I refresh the iframe with the button (next to the logo in the upper, left-hand corner) then the iframe is reloaded, I guess the url defined in tab definition is called again.

What I would like to have when refresh is clicked is to refresh an iframe while staying on the same URL path. For example if my iframe url is domain.com and I navigate to domain.com/somepage. After refesh I am back on domain.com page. How to preserve current url and refresh current url?


Reproduction Steps:

Define a new Tab as iframe. Open iframe and navigate on some page. Click refresh button. You awill be back on the first page that was initially loaded with the iframe.


Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@alanmilinovic
Copy link
Author

Don't close it.

@HalianElf
Copy link
Collaborator

This only works if you're using relative paths. If you're using separate subdomains, the browser blocks the parent from being able to read the URL that's in the iframe.

@alanmilinovic
Copy link
Author

Understood, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants