Comments

2 comments

  • Richard Alpagot

    Hi Rupert,

    I've whipped up a quick fiddle example of req.url being used in a response after the host that "brings through" the URL and query string parameter here: https://fiddle.fastlydemo.net/fiddle/f538c265

    Essentially you want the source field to say something like: "http://www.example.com" + req.url (The + sign is optional)

    If you want to modify the URL and state that in the location header and only bring the qs through there is req.url.qs. Feel free to clone my fiddle example and experiment.

  • Rupert Bates

    Richard, you are a legend thank you!

    Also I was completely unaware of the fiddle tool, that is super useful.

Please sign in to leave a comment.