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 →

segment_1 in preview....

Phil Smith October 2, 2020 by Phil Smith

First time poster, be gentle....

Loving Statamic so far. Live Preview is an amazing feature, but I'm hitting an issue. A few of my templates use something like

{{ nav from="/{segment_1}" ... }}

this works great in production, but in live preview segement_1 is 'cp' so I get an error.

Anyone got a workaround?

>>>>>>> Unanswered <<<<<<<
3 Replies
2 Followers