I am trying to create an ejs conditional based on a URL parameter, for example, if the test parameter exists at localhost:3000/page?test, then show a div, else dont show it.
<%= req.query.paramName %>
Works for me where paramName is the name of your URL query parameter.
paramName