You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if the app detected links to the same nextcloud instance: i.e. to a file or directory https://yourservercloud.tld/f/00000000 or to any other subdirectory (essentiallyNEXTCLOUDURL/.*) and redirected to them instead of embedding the result.
Actual behaviour
If an embedded website contains such a link and the user accesses it, there'll be a child Nextcloud GUI instance inside the parent Nextcloud instance, which is confusing, makes little sense and can be repeated indefinitely.
Expected behaviour
Any link inside the iframe which targets the current nextcloud instance causes the parent website to redirect to that URL.
Usage case in which
Embedding the URL of an app running on a subdomain which saves its files inside a nextcloud-shared directory and has a link to the share to find it easier. External, private apps which use nextcloud as a backend.
The text was updated successfully, but these errors were encountered:
To commit injs/external.js. Works in the Developer Options console in Firefox 95. However, needs to wait for the page to load (usually not fast). Would be great if we could catch the unload iframe event (but we cannot bind to it because it'll initially be a cross-origin domain.
The value however does seem to change instantly, so a mutation observer may work? (alert(document.getElementById('ifm').contentWindow.location.href) works).
letifr=document.getElementById('ifm');ifr.onload=function(){try{letifrLocation=ifr.contentWindow.location;if(ifrLocation.hostname.match(window.location.hostname)){window.location.href=ifrLocation.href;}}catch(e){// Ignore error: means the iframe is in another domain and CORS prohibits reading the URL}};
ENHANCEMENT
It'd be nice if the app detected links to the same nextcloud instance: i.e. to a file or directory
https://yourservercloud.tld/f/00000000
or to any other subdirectory (essentiallyNEXTCLOUDURL/.*
) and redirected to them instead of embedding the result.Actual behaviour
If an embedded website contains such a link and the user accesses it, there'll be a child Nextcloud GUI instance inside the parent Nextcloud instance, which is confusing, makes little sense and can be repeated indefinitely.
Expected behaviour
Any link inside the iframe which targets the current nextcloud instance causes the parent website to redirect to that URL.
Usage case in which
Embedding the URL of an app running on a subdomain which saves its files inside a nextcloud-shared directory and has a link to the share to find it easier. External, private apps which use nextcloud as a backend.
The text was updated successfully, but these errors were encountered: