Skip to content

Commit

Permalink
rename page to enterprise-server-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Dec 8, 2020
1 parent 64c59fb commit c52a9ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/article-version-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
>
{{ allVersions[permalink.pageVersion].versionTitle }}</a>
{% endfor %}
<a class="f6 no-underline text-gray-light pt-1" href="/enterprise-releases">See all Enterprise releases</a>
<a class="f6 no-underline text-gray-light pt-1" href="/enterprise-server-releases">See all Enterprise releases</a>
</div>
</details>
{% endif %}
File renamed without changes.
4 changes: 2 additions & 2 deletions middleware/enterprise-releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { liquid } = require('../lib/render-content')
const layouts = require('../lib/layouts')

module.exports = async (req, res, next) => {
if (!req.path.endsWith('/enterprise-releases')) return next()
if (!req.path.endsWith('/enterprise-server-releases')) return next()

return res.send(await liquid.parseAndRender(layouts['enterprise-releases'], req.context))
return res.send(await liquid.parseAndRender(layouts['enterprise-server-releases'], req.context))
}

0 comments on commit c52a9ba

Please sign in to comment.