I love your deploy preview notifications, they are (another) awesome part of your crazy-good product.
I do have a question: our bare domain URL (without a path or parameters) is not designed to be visited directly, as we generate unique links for users to view and visit our content.
My question is: Is there a way to modify the path or add parameters to the commit and/or deploy preview URLs generated by netlify ?
You can add anything you want to a deploy by deploying it . For automatic behavior on page visit to the root, Iād suggest that you can create a redirect just and only for ā/ā that pushes people to the URL you want them at:
Something like
/ /landing-page 301
ā¦in your _redirects file should do the job.
If that wonāt suit, could you let me know more about why? Then, Iāll be able to try to help find a solution that better suits your needs.
Iām grateful for your response, and feeling embarrassed I didnāt provide enough context for you to fully answer my questionā¦ but you may have found the right path anyway.
Hereās some more info, and weāll see if you change your mind.
Our bare domain should 404 ā it hosts a paywalled product that should only be accessible via unique links that contain a special āsession codeā that authenticates the user.
I have some session codes I have for testing purposes, using test users, parameters to disable analytics, etc., and Iād like Netlifyās GitHub deploy preview notifications (and maybe even CLI deploy notifications?) to automatically append this session code.
But, your comment about redirects has me thinkingā¦
Maybe I can do a redirect for the bare domain but only for a deploy-preview/branch-deploy context?