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

Internally redirect stable links #659

Open
nomeata opened this issue Jun 24, 2019 · 0 comments
Open

Internally redirect stable links #659

nomeata opened this issue Jun 24, 2019 · 0 comments

Comments

@nomeata
Copy link

nomeata commented Jun 24, 2019

Currently, when I use the “stable link to build artifact”, I get a redirect to the actual location:

GET https://hydra.foo.com/job/bar/baz/job/latest-finished/download/1/baz/index.html

302 Found
Connection: close
Date: Mon, 24 Jun 2019 14:18:22 GMT
Location: https://hydra.foo.com//build/112342321/download/1/baz/index.html

Following the redirect, the browser now has the build-specific URL in the navigation bar. This means that I can’t click around and still have a URL that I can give to my colleague that stably points at the latest build.

I would find it more useful if hydra would resolve these internally.

A relevant line of code seems to be

$c->res->redirect($c->uri_for($c->controller('Build')->action_for("build"), [$latest->id], @rest));

(I am not sure if this is easily possible with Catalyst)

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

No branches or pull requests

1 participant