Support for :tokens with aliases

I just realized I can use tokens in URL management, including in the front matter’s url, however, sadly, it does not seem to be the case for aliases.

After a bit of experimenting, this looked like a great feature to use with aliases and cascade. I attempted:

cascade:
  url: /:filename/

And this works as expected, but it is ignored (not quite, it creates the :slug directory, literally - no expansion) with:

cascade:
  aliases:
  - /:slug/

Am I the first one attempting to create aliases en masse in this way for content that is meant to change its location into subdirectories?

Any other way to accomplish this?

If your provider supports it, I’d set up redirects.

1 Like