Skip to content

fix(previews): Previews {URI} template doesn't follow permalinks #201

@moonmeister

Description

@moonmeister

What did you do?

I configured my preview URL for posts to look like: http://localhost:4321/{uri}?preview=true. Permalinks are set to "Month and name". But this seems to affect any permalink setting other than "Post name".

What did you expect to happen?

I expected to be able to preview posts, and the URI to be correct.

What actually happened?

The preview URL was http://localhost:4321/new-post-draft?preview=true, which was not correct. It should have been `http://localhost:4321/2025/05/new-post-draft?preview=true

Additional context (Optional)

HWP Previews v0.0.1
WPGraphQL v2.3.0

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions