Skip to content

[26.0] Fix data source tool redirect back to Galaxy SPA#22720

Merged
bgruening merged 1 commit into
galaxyproject:release_26.0from
mvdbeek:fix-datasource-redirect
May 19, 2026
Merged

[26.0] Fix data source tool redirect back to Galaxy SPA#22720
bgruening merged 1 commit into
galaxyproject:release_26.0from
mvdbeek:fix-datasource-redirect

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented May 19, 2026

The mako-template removal in 7634165 deleted the JavaScript top.location.href = '/' redirect that returned the user to Galaxy after an external data source import in a new tab. The replacement show_ok_message rendered a static page, leaving the new tab stranded on a "job queued" message instead of navigating back to the SPA.

Restore the redirect with a 302 to /?notification=tool-submitted from both ToolRunner.index and ASync.index, and have Home.vue surface a useToast notification on landing (then strip the query param so a reload doesn't re-fire it).

Fixes #22671

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

The mako-template removal in 7634165 deleted the JavaScript
`top.location.href = '/'` redirect that returned the user to Galaxy
after an external data source import in a new tab. The replacement
`show_ok_message` rendered a static page, leaving the new tab
stranded on a "job queued" message instead of navigating back to the
SPA.

Restore the redirect with a 302 to `/?notification=tool-submitted`
from both `ToolRunner.index` and `ASync.index`, and have `Home.vue`
surface a `useToast` notification on landing (then strip the query
param so a reload doesn't re-fire it).

Fixes galaxyproject#22671
@bgruening bgruening merged commit 320c538 into galaxyproject:release_26.0 May 19, 2026
56 of 60 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies May 19, 2026
@bgruening
Copy link
Copy Markdown
Member

Will redeploy EU now, this might still be needed in GTA

@nsoranzo nsoranzo deleted the fix-datasource-redirect branch June 3, 2026 14:32
@nsoranzo nsoranzo mentioned this pull request Jun 3, 2026
4 tasks
nsoranzo added a commit that referenced this pull request Jun 3, 2026
Fix:

```
/home/runner/work/galaxy/galaxy/client/src/entry/analysis/modules/Home.vue
Warning:    1:1  warning  Component name "Home" should always be multi-word                          vue/multi-word-component-names
Error:   48:5  error    The "computed" property should be above the "mounted" property on line 35  vue/order-in-components
```

Broken in #22720 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants