# Slugs not showing up in URL

**URL:** <https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867>\
**Category:** Help\
**Created:** [January 14, 2022, 12:34am UTC](https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867 "2022-01-14T00:34:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![billbennettnz](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billbennettnz/32/4247_2.png) [@billbennettnz](https://talk.jekyllrb.com/u/billbennettnz)\
**Post date:** [January 14, 2022, 12:34am UTC](https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867/1 "2022-01-14T00:34:49Z")

</div>

In \_config.yml I have the line:

permalink: /:slugified\_categories/:slug/

The category part of this gets slugified, so on this page:

> **[From WordPress to Jekyll Project](https://www.digitl.nz/wordpress/From-WordPress-to-Jekyll-Project/)**
>
> Wordpress has moved away from its roots as a simple blog tool. There’s nothing wrong with that, it’s a business and it needs to stay in touch with its market.

the category Wordpress shows in lower case as expected.

The slug part does not work as expected.

I’ve tried using the following as Front Matter for the post:

layout: post  
title: “From WordPress to Jekyll Project”  
slug: “wordpress-jekyll”  
date: 2022-01-12 19:55:47 +1300  
categories: wordpress

and this version

layout: post  
title: “From WordPress to Jekyll Project”  
date: 2022-01-12 19:55:47 +1300  
categories: wordpress

In both cases the url shows as

www.digitl.nz/wordpress/From-WordPress-to-Jekyll-Project/

Ideally, I would be able to get the slug version:

www.digitl.nz/wordpress/wordpress-jekyll/

but I’d settle for:

www.digitl.nz/wordpress/from-wordpress-to-jekyll-project/

Neither seems to happen. Where am I going wrong?

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [January 14, 2022, 12:46am UTC](https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867/2 "2022-01-14T00:46:12Z")

</div>

not sure about the slug part not working in the permalink, but what is the filename? is it in caps? I think if what you don’t like is the caps in the url you can fix it by renaming the filename as lowercase.

---

<div class="post-metadata">

**Author:** ![billbennettnz](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billbennettnz/32/4247_2.png) [@billbennettnz](https://talk.jekyllrb.com/u/billbennettnz)\
**Post date:** [January 14, 2022, 1:45am UTC](https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867/3 "2022-01-14T01:45:21Z")

</div>

I tried this, then waited 20 minutes because GitHub can take a while to propagate.

Changing the filename doesn’t appear to have changed anything. At least not yet.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [January 16, 2022, 5:17am UTC](https://talk.jekyllrb.com/t/slugs-not-showing-up-in-url/6867/4 "2022-01-16T05:17:40Z")

</div>

> [@billbennettnz](#):
>
> permalink: /:slugified\_categories/:slug/

what if you do title/ at the end instead of slug? it should give you `from-wordpress-to-jekyll-project` I think. Not sure about the caps, I’m guessing the slugging is all about the space removal only?
