<!--

**Apache Airflow version**: latest

**Environment**: Linux

- **Cloud provider or hardware configuration**:
- **OS** (e.g. from /etc/os-release):
- **Kernel** (e.g. `uname -a`):
- **Install tools**:
- **Others**:

**What happened**:
Unauthenticated access with RBAC to URL has_dag_access results lose redirection

**What you expected to happen**:
Redirection maintained, user can login and redirected to proper page

Missing next URL parameter

**How to reproduce it**:
Setup airflow with RBAC
Have a user who hasn't log in access a URL that uses decorator has_dag_access, i.e:
  http://localhost/graph?dag_id=dag_id
User will be sent to login page, (note the next= argument that required to redirect to original page is gone)
Login properly, user then will be sent to bad page


If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action

airflow/www/decorators.py
"""Decorator to make a view compressed"""
    @functools.wraps(f)
    def view_func(*args, **kwargs):
        @after_this_request
        def zipper(response):  
            accept_encoding = request.headers.get('Accept-Encoding', '')
            if 'gzip' not in accept_encoding.lower():
                return response
            response.direct_passthrough = False
            if (
                response.status_code < 200
                or response.status_code >= 300
                or 'Content-Encoding' in response.headers
            ):
                return response
            gzip_buffer = IO()
            gzip_file = gzip.GzipFile(mode='wb', fileobj=gzip_buffer)
            gzip_file.write(response.data)
            gzip_file.close()
            response.data = gzip_buffer.getvalue()
            response.headers['Content-Encoding'] = 'gzip'
            response.headers['Vary'] = 'Accept-Encoding'
            response.headers['Content-Length'] = len(response.data)
            return response
        return f(*args, **kwargs)
    return cast(T, view_func)
def has_dag_access(**dag_kwargs) -> Callable[[T], T]: