# Permalink for all collections?

**URL:** <https://talk.jekyllrb.com/t/permalink-for-all-collections/6027>\
**Category:** Help\
**Created:** [May 10, 2021, 5:37pm UTC](https://talk.jekyllrb.com/t/permalink-for-all-collections/6027 "2021-05-10T17:37:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorb](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/victorb/32/5112_2.png) [@victorb](https://talk.jekyllrb.com/u/victorb)\
**Post date:** [May 10, 2021, 5:37pm UTC](https://talk.jekyllrb.com/t/permalink-for-all-collections/6027/1 "2021-05-10T17:37:30Z")

</div>

Hey, I’d simply like to have this permalink for all the collections : `/:collection/:name`, is it possible?

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [May 10, 2021, 9:17pm UTC](https://talk.jekyllrb.com/t/permalink-for-all-collections/6027/2 "2021-05-10T21:17:19Z")

</div>

Did you know that you can set the permalink at the top level of the config and also within the collections section of the config? I cover in my [cheatsheet](https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/jekyll/templating/permalinks.html).

What you provided is the _exact_ permalink value _already_ used by default in collections section of config, so you’ll get no benefit. So don’t set it.

For example I have this Languages collection item at this url and I did not have to set its permalink up as a collection.

- [michaelcurrin.github.io/jekyll-blog-demo/languages/liquid/](https://michaelcurrin.github.io/jekyll-blog-demo/languages/liquid/)
- [\_languages/liquid.md](https://github.com/MichaelCurrin/jekyll-blog-demo/blob/master/_languages/liquid.md)

* * *

I used `pretty` for permalink value in config. Which is aliased to `/:categories/:year/:month/:day/:title/` (note lack of collections here is fine).

So with that I get `/mypage/` instead of `/mypage.html`, but I could have used the Jekyll default of `date` to get `/mypafe.html` extension.

Either way, I don’t bother setting anything specific to the collection permalink there or in collections field, and it all works neatly for my collection.
