Skip to content

Retaining value of referer header before OIDC client is bounced back to website #1614

@Romasato

Description

@Romasato

Hi there,

Quite interesting problem around document.referrer, where it is not retained and instead gets replaced with ID server domain after OIDC redirect back to the website.
We need referer header to retain the search engine URL after landing on our website, i.e. for web analytics tools to attribute traffic to correct sources.

The flow goes like this:

  • User searches for our brand on Google.com
  • Clicks on result link
  • Gets taken to our website
  • [ At this point document.referrer holds Google domain URL ]
  • Immediately OIDCServiceWorker kicks user to our ID server and then ID server bounces User back to our website.
  • [ document.referrer now holds our website domain, not Google URL anymore ]

Is this a known problem?
Is there some sort of possible solution or workaround?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions