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 →

Linking to a permanent page ID

Ben March 24, 2019 by Ben

Is there a way to link to the id of a page?

At the moment using {{ link to="example_page" }} or {{ path src="example_page" }} it appears that you can only pass in the title of the page. This breaks if the site owner decides to change the slug or title of the page.

Each page has an id associated with it which doesn't appear to change - is there a way to create a link using this so that any changes to the title or slug don't break the link?

Answered by James Blair!
>>>>>>> Answered <<<<<<<
2 Replies
3 Followers