Skip to content

Commit eaa8ab7

Browse files
authored
Update file-system-page-creation.md
1 parent 66111f4 commit eaa8ab7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/file-system-page-creation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Assume that a `Product` model is used in two pages:
140140
- `/src/pages/products/{Product.name}.js`
141141
- `/src/pages/discounts/{Product.name}.js`
142142

143-
If you wanted to link to the `products/{Product:name}` route from your home page, you would have a component like this:
143+
If you wanted to link to the `products/{Product.name}` route from your home page, you would have a component like this:
144144

145145
```jsx:title=/src/pages/index.js
146146
import { Link, graphql } from "gatsby"
@@ -152,10 +152,10 @@ export default function HomePage(props) {
152152
}
153153
154154
export const query = graphql`
155-
query ($id: String) {
155+
query {
156156
allProducts {
157157
name
158-
gatsbyPath(filePath: "/products/{Product:name}")
158+
gatsbyPath(filePath: "/products/{Product.name}")
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)