File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ Assume that a `Product` model is used in two pages:
140
140
- ` /src/pages/products/{Product.name}.js`
141
141
- ` /src/pages/discounts/{Product.name}.js`
142
142
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:
144
144
145
145
` ` ` jsx:title=/src/pages/index.js
146
146
import { Link, graphql } from "gatsby"
@@ -152,10 +152,10 @@ export default function HomePage(props) {
152
152
}
153
153
154
154
export const query = graphql`
155
- query ( $id : String ) {
155
+ query {
156
156
allProducts {
157
157
name
158
- gatsbyPath (filePath: " /products/{Product: name}" )
158
+ gatsbyPath (filePath: " /products/{Product. name}" )
159
159
}
160
160
}
161
161
}
You can’t perform that action at this time.
0 commit comments