title: Pagination on Single-Entry view in ExpressionEngine
body: <p>I am building a website with ExpressionEngine as the CMS. There is a "Work" section that displays all the projects, and a detail view that shows each project individually. It is at this point, on the single-entry view that I would like to have "prev" and "next" pagination. In my tests I have made it work when the URL is "somedomain.com/index.php/work/detail/" but it does not work when the specific entry is part of the URL: "somedomain.com/index.php/work/detail/some_project/"</p>
  
  <p>I've tried putting the pagination code outside of the {exp:weblog:entries} tag as well as within it, but to no avail. This is what my pagination code looks like:</p>
  
  <pre><code>{paginate}
      &lt;ul&gt;
          {if previous_page}
          &lt;li&gt;&lt;a href="{auto_path}"&gt;&lt; previous&lt;/a&gt;&lt;/li&gt;
          {/if}
  
          {if next_page}
          &lt;li&gt;&lt;a href="{auto_path}"&gt;next &gt;&lt;/a&gt;&lt;/li&gt;
          {/if}
      &lt;/ul&gt;
  {/paginate}
  </code></pre>