authentik icon indicating copy to clipboard operation
authentik copied to clipboard

After succesfull login Authentik redirects to base url without subpath and query args

Open kzvdar42 opened this issue 1 year ago • 5 comments

Describe the bug For example:

  1. I go to https://work.home/test-path/?arg=1
  2. It redirects me to authentik, I log in
  3. Authentik redirects me to https://work.home without subpath and query arguments

To Reproduce Steps to reproduce the behavior:

  1. Setup authentik and app behind nginx (standalone) using configs from authentic docs
  2. Setup Forward Auth (single application) Proxy Provider for the app
  3. Try to login to app from subpath/with query arguments

Expected behavior After successful login authentik should redirect back to the original requested uri

Logs Don't know which logs should I add here, will add some if requested

Version and Deployment:

  • authentik version: [2024.6.3]
  • Deployment: [docker-compose (portainer)] All nginx configs are default configs from the docs

kzvdar42 avatar Aug 15 '24 22:08 kzvdar42

I'm getting a similar bug, launching the app from authentik fails the first time in a new tab, but if I close and open a new tab it launches with no issues. Watching with interest.

mrcheap1984 avatar Aug 16 '24 12:08 mrcheap1984

Hi @BeryJu - I'd love to work on this issue, can you please assign it to me? Thanks.

chahmedejaz avatar Aug 17 '24 14:08 chahmedejaz

Sounds like the same thing I just asked in the Q&A. First click takes you to root, 2nd click works as expected.

swjcarter avatar Aug 17 '24 15:08 swjcarter

Hopefully this is a fairly easy fix.

swjcarter avatar Aug 21 '24 23:08 swjcarter

Happens also with 2024.6.4

swjcarter avatar Aug 28 '24 15:08 swjcarter

Thank you @beryJu !!!

swjcarter avatar Sep 17 '24 14:09 swjcarter