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

How to keep utm parameters in redirects? #153

Open
KevinDanikowski opened this issue Jun 14, 2021 · 2 comments
Open

How to keep utm parameters in redirects? #153

KevinDanikowski opened this issue Jun 14, 2021 · 2 comments

Comments

@KevinDanikowski
Copy link

I have redirects I'd like to implement, but I'm not seeing a way to keep them from stripping the query parameters. Is there anyways I can keep utm_val=something in my config?

{ 
  "redirects": [ 
    {
      "source": "/oldpath?utm_val=something",
      "destination": "/newpath"
    } 
  ]
}

Desired Behavior:

/oldpath?utm_val=something => /newpath?utm_val=something

Current Behavior:

/oldpath?utm_val=something => /newpath

@KevinDanikowski
Copy link
Author

KevinDanikowski commented Jun 14, 2021

After looking into it, currently this package doesn't support this ability. I have added the ability and created a PR for it.

PS: For anyone interested, I made this change and published @kevindanikowski/serve-handler 6.2.0 and @kevindanikowski/serve 12.0.0 with the updated dependency.

@warren-bank
Copy link

shameless self-promotion alert:
this feature is available in my @warren-bank/serve fork of serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants