galaxyproject / training-material

A collection of Galaxy-related training material
https://training.galaxyproject.org
MIT License
305 stars 896 forks source link

Different link for specific galaxy instances of workflows and tutorials #4637

Open paulzierep opened 9 months ago

paulzierep commented 9 months ago

The workflow and tutorial queries (https://training.galaxyproject.org/training-material/workflows/embed.html?query=microbiome) via the GTN are useful to filter for specific communities and are already used as iframes in subdomains such as https://singlecell.usegalaxy.eu/ and https://microgalaxy.usegalaxy.eu/:

The problem when using them in iframes for the subdomains is, that the links only point to the main instances i.e. usegalaxy.eu; this opens galaxy inside the iframe, it would be much more user-friendly if this could point to the actual instance i.e. https://microgalaxy.usegalaxy.eu/

hexylena commented 9 months ago

this should be doable, we could add a query parameter in which you pass the parent pages domain, and then do some replacement.

paulzierep commented 9 months ago

I thought something along those lines. It would probably also be good if we could make the links open in the parent frame, like <a target="_parent" href="http://url.org">link</a> ... taken from here: https://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in-the-parent-window

hexylena commented 9 months ago

yes that's likewise possible. A bit harder to know if we're in the right environment for that, but perhaps we can make it configurable or so.