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

Fix frontend redirect #2544

Merged
merged 2 commits into from
Dec 13, 2017
Merged

Fix frontend redirect #2544

merged 2 commits into from
Dec 13, 2017

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Dec 7, 2017

What does this PR do?

Fixes frontend redirect when entry point doesn't contain redirect definition.

Motivation

Fixes #2540
Related to #2133

More

  • Added/updated tests

Additional Notes

@ldez ldez added this to the 1.5 milestone Dec 7, 2017
server/server.go Outdated
if s.globalConfiguration.EntryPoints[entryPoint.Redirect.EntryPoint] == nil {
return "", "", fmt.Errorf("unknown target entrypoint %q", entryPoint.Redirect.EntryPoint)
func (s *Server) buildRedirect(entryPointName string) (string, string, error) {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove this line ?

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmatur mmatur changed the title fix: frontend redirect. Fix: frontend redirect Dec 8, 2017
@ldez ldez removed the bot/no-merge label Dec 8, 2017
Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏

@traefiker traefiker merged commit b0c12e2 into traefik:v1.5 Dec 13, 2017
@ldez ldez deleted the fix/frontend-redirect branch December 15, 2017 14:56
@ldez ldez changed the title Fix: frontend redirect Fix frontend redirect Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants