Skip to content

Fix inverted condition in getDetailPagePaths#732

Open
jamiefolsom wants to merge 1 commit into
developfrom
fix/detail-page-paths
Open

Fix inverted condition in getDetailPagePaths#732
jamiefolsom wants to merge 1 commit into
developfrom
fix/detail-page-paths

Conversation

@jamiefolsom

Copy link
Copy Markdown
Member

getDetailPagePaths returned an empty route list for models that have configured detail pages, so a static build (STATIC_BUILD=true) prerendered detail pages for exactly the wrong set of models. SSR is unaffected because getStaticPaths is never called there.

One-line fix: negate the hasDetailPage guard. Verified on a static build of an internal site — the configured models (people, places, works) now get detail routes and the unconfigured ones don't.

Fixes #729

Models with configured detail pages returned an empty route list, so
static builds prerendered detail pages for exactly the wrong set of
models. Invisible in SSR, where getStaticPaths is not used.

Fixes #729
@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for juel-ancestry ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/juel-ancestry/deploys/6a50ef8b7de024000874b995
😎 Deploy Preview https://deploy-preview-732--juel-ancestry.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for pss-scavenger-hunt ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/pss-scavenger-hunt/deploys/6a50ef8ae55b6a00078234ec
😎 Deploy Preview https://deploy-preview-732--pss-scavenger-hunt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for juel-staging ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/juel-staging/deploys/6a50ef8b60af8300084e0795
😎 Deploy Preview https://deploy-preview-732--juel-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for padp-staging ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/padp-staging/deploys/6a50ef8a171aef0008f41637
😎 Deploy Preview https://deploy-preview-732--padp-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for marronage-staging ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/marronage-staging/deploys/6a50ef8b7b80e300081d0a0b
😎 Deploy Preview https://deploy-preview-732--marronage-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for juel-life ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/juel-life/deploys/6a50ef8ba7e0fe000885bf42
😎 Deploy Preview https://deploy-preview-732--juel-life.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for relnet-staging ready!

Name Link
🔨 Latest commit 1c8dcc9
🔍 Latest deploy log https://app.netlify.com/projects/relnet-staging/deploys/6a50ef8be9ebb80008dc485f
😎 Deploy Preview https://deploy-preview-732--relnet-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Static builds prerender detail pages for the wrong models

1 participant