New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Dynamic Route

Joe Kindness December 6, 2018 by Joe Kindness

I've created the following route:

/my-directory/{slug}/landing:
  template: my-directory/landing
  load: '/my-directory/{slug}'

This will successfully load the page with the correct template, but it will not load the content. If I replace {slug} in my load path with the hardcoded value for one of my collections, it works.

It seems like I cannot dynamically set the load url?

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
2 Replies
3 Followers