Closed
Description
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
In a query, using gatsby patch does not correctly expand the paths.
gatsbyPath(filePath: "/{Article.articleType__slug}/{Article.slug}")
I would expect to see a path such as /type1/article1/
but instead I get {Article.articleType__slug}/article1/
Reproduction Link
https://github.com/nrandell/gatsby-path-nested-bug
Steps to Reproduce
yarn install
yarn develop
http://localhost:8000/type1/article1
Expected Result
On the page I would expect to see
Got path as: /type1/article1/
Expect to see: /type1/article1/
Actual Result
On the page I would expect to see
Got path as: /{Article.articleType__slug}/article1/
Expect to see: /type1/article1/
Environment
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 7 PRO 4750G with Radeon Graphics
Binaries:
Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.10.4
Browsers:
Edge: Spartan (44.22621.819.0), Chromium (107.0.1418.56), ChromiumDev (User home = 'C:\Users\nickr\AppData\Local\IISExpress'
IIS USER HOME configured)
npmPackages:
gatsby: ^5.0.0 => 5.1.0
Config Flags
No response