Skip to content

Wrong/Multiple Redirects #1145

Answered by diorcety
diorcety asked this question in Q&A
Dec 19, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

For who wants this feature, I made a quick and dirty improvement: diorcety@50643ff

Here an example

      errors:
        fallback:
          - redirect#unauthorized
          - redirect#forbidden
          - json
          - redirect
        handlers:
          json:
            enabled: true
            config:
              when:
                - request:
                    header:
                      accept:
                        - application/json
          redirect#unauthorized:
            enabled: true
            config:
              to: 'http://auth.test.fr/login'
              return_to_query_param: return_to
              when:
                - error:
                  …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@AMarti96
Comment options

@diorcety
Comment options

Answer selected by diorcety
Comment options

You must be logged in to vote
2 replies
@mtillberg
Comment options

@mtillberg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants