{"action":"closed","issue":{"url":"https://api.github.com/repos/prismicio/baked.js/issues/25","labels_url":"https://api.github.com/repos/prismicio/baked.js/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/prismicio/baked.js/issues/25/comments","events_url":"https://api.github.com/repos/prismicio/baked.js/issues/25/events","html_url":"https://github.com/prismicio/baked.js/issues/25","id":93717653,"number":25,"title":"slug example","user":{"login":"kevinsproles","id":5815492,"avatar_url":"https://avatars.githubusercontent.com/u/5815492?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsproles","html_url":"https://github.com/kevinsproles","followers_url":"https://api.github.com/users/kevinsproles/followers","following_url":"https://api.github.com/users/kevinsproles/following{/other_user}","gists_url":"https://api.github.com/users/kevinsproles/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsproles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsproles/subscriptions","organizations_url":"https://api.github.com/users/kevinsproles/orgs","repos_url":"https://api.github.com/users/kevinsproles/repos","events_url":"https://api.github.com/users/kevinsproles/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsproles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T07:24:05Z","updated_at":"2015-07-08T09:33:01Z","closed_at":"2015-07-08T09:33:01Z","body":"Trying to have the custom urls / routes use a slug rather than the id.\r\n\r\nThis post says several starter projects support it, but can't seem to get it to work in this baked.js project:\r\nhttps://qa.prismic.io/2/more-control-over-my-slugs\r\n\r\nTried this on the parent page (index.html):\r\n\r\n    <a href=\"[%= pathTo('product', {slug: product.slug}) %]\">\r\n      <h3>[%= product.getText('product.slug') %]</h3>\r\n    </a>\r\n\r\nAnd this on the detail page:\r\n\r\n    <meta name=\"prismic-routing-param\" content=\"slug\">\r\n    <meta name=\"prismic-routing-pattern\" content=\"$slug\">\r\n    <script type=\"text/prismic-query\" data-binding=\"product\">\r\n      [\r\n        [:d = any(document.slug, [\"$slug\"])]\r\n      ]\r\n    </script>"}}