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

Feature request: Appending query strings to domains #604

Open
wellhairy opened this issue Nov 29, 2018 · 2 comments
Open

Feature request: Appending query strings to domains #604

wellhairy opened this issue Nov 29, 2018 · 2 comments

Comments

@wellhairy
Copy link

I'd like to be able to hook onto one or all domains specified in my config.yaml file and append a query string to a specified domain.

Something like:

domains:
  current:  "https://www.example.com"
  new:      
    url: "https://www.example.com"
    append: "?env=dev"

paths:
  home:     /
  contact:  /contact-us

With the output capturing urls as follows:

  current:  https://www.example.com/
            https://www.example.com/contact-us
            
  new:      https://www.example.com/?env=dev
            https://www.example.com/contact-us?env=dev

The documentation doesn't mention anything like this but is this something I could achieve now and if not is this a feature that might be developed in the future?

@npearce
Copy link

npearce commented Jul 11, 2019

This would be AWESOME. Am working on a project where the only way to load the test theme is to pass a 'preview' parameter to prod. So the configuration would have to know to ONLY pass the param to one domain and not the other. Just as you have in your example above.

Please, please, please!

@kentr
Copy link

kentr commented Oct 20, 2019

Would also be useful for busting caches, such as on sites behind a reverse proxy.

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

3 participants