causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.2k stars 292 forks source link

Refresh iframe but stay on the current URL #2008

Closed alanmilinovic closed 1 month ago

alanmilinovic commented 1 month ago
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.


github-actions[bot] commented 1 month ago

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 commented 1 month ago

Don't close it.

HalianElf commented 1 month ago

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 commented 1 month ago

Understood, thank you.