# Starts with path targeting

**URL:** <https://forum.builder.io/t/starts-with-path-targeting/1979>\
**Category:** Technical Questions\
**Tags:** visual-editor\
**Created:** [March 30, 2022, 11:24pm UTC](https://forum.builder.io/t/starts-with-path-targeting/1979 "2022-03-30T23:24:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@manuel](https://forum.builder.io/u/manuel)\
**Post date:** [March 30, 2022, 11:24pm UTC](https://forum.builder.io/t/starts-with-path-targeting/1979/1 "2022-03-30T23:24:18Z")

</div>

**What are you trying to accomplish**

- I’m trying to have a sub path or child path `(e.g. /blog-individual/{childpath which is the blog id})` for my page so I used the `StartsWith` in targeting, but after I ran it with gatsby, the page couldn’t be found. Did I set it up wrong?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/ec48cdca620577cb79f9b72217ec6ec4bce74516.png)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [March 31, 2022, 12:07am UTC](https://forum.builder.io/t/starts-with-path-targeting/1979/2 "2022-03-31T00:07:18Z")

</div>

dynamic URL paths wouldn’t work with Gatsby out of the box due to Gatsby’s static nature [all URLs must be known at build time]

You’d want to create each page explicitly in your gatsby-node file:

```auto
exports.createPages = ({ graphql, actions }) => {
  const { createPage } = actions;
  // fetch all blogs from your source and create a page for each
  createPage({
        path: `/blog-individual/${blog.slug}/`,
        component: path.resolve(`./src/templates/blog-page-template.tsx`);
   });
};

```

---

<div class="post-metadata">

**Author:** ![manuel](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@manuel](https://forum.builder.io/u/manuel)\
**Post date:** [March 31, 2022, 12:44pm UTC](https://forum.builder.io/t/starts-with-path-targeting/1979/3 "2022-03-31T12:44:26Z")

</div>

Will try this out @aziz . Thank you! 🙂
