title: NextJS: Specify Common Rendering Template
body: <p>Below is an example of a link structure that I am trying to work with:</p>
  
  <p><code>www.baseurl.com/pathname/some-sub-information</code></p>
  
  <p>I essentially want NextJS to render the file matching the <code>/pathname/</code> - so <code>pathname.js</code>. No matter what /some-sub-information might be, NextJS should render the <code>pathname.js</code> file, using the <code>/some-sub-information</code> as parameters for an API call.</p>
  
  <p>I know this could essentially be done by passing queries through the link, and have it hook the the pathname, although I have been instructed by marketing that this is how they want the links.</p>
  
  <p>I am at a bit of a loss how to do this, as this is the first time I am working with Next and SSR in general. I am hoping that there is someway in Next to specify that it should render a certain file when it hits the <code>/pathname</code> part of the url, and then just ignore the rest of the url.</p>
  
  <p>This might be too much to ask, bug if there is any other way that I could achieve this, guiding information would be highly appreciated.</p>