next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Changing the node path alias pattern not reflecteded in next site

Open claudiu-cristea opened this issue 3 years ago • 2 comments
trafficstars

Issue defined in title.

claudiu-cristea avatar Dec 19 '21 17:12 claudiu-cristea

Can you give us more details? What was the pattern changed to and what does your getStaticPaths look like?

Thank you

shadcn avatar Dec 20 '21 04:12 shadcn

I've changed the Article pattern from blog/[node:title] to [node:title]. However, after explicitly rebuilding the cache, it did sync. Not a big issue, really, but I still think that some cache tags are missing somewhere. getStaticPaths was:

export async function getStaticPaths(context): Promise<GetStaticPathsResult> {
  return {
    paths: await getPathsFromContext(["node--article", "node--page"], context),
    fallback: "blocking",
  }
}

claudiu-cristea avatar Dec 20 '21 14:12 claudiu-cristea