Skip to content

Conversation

avilyre
Copy link

@avilyre avilyre commented Sep 21, 2025

Changes

  • Astro.url.pathname returns value with the correct file .html extension when build.format: 'perserve' is enabled in astro.config.mjs

Closes: #13615

Testing

Here's the screenshot after change:
build.format: 'preserve' is enabled in all screenshot

For routeType: 'page' with a named pathname. Now we have .html extension in pathname property
Captura de Tela 2025-09-21 às 00 42 54

For routeType: 'page' without a named pathname (no change)
Captura de Tela 2025-09-21 às 00 42 29

For routeType: 'endpoint' (no change)
Captura de Tela 2025-09-21 às 00 42 10

Docs

I am not sure, but I think it is not needed.

Copy link

changeset-bot bot commented Sep 21, 2025

🦋 Changeset detected

Latest commit: fdc8251

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release labels Sep 21, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

Copy link

codspeed-hq bot commented Sep 21, 2025

CodSpeed Performance Report

Merging #14410 will not alter performance

Comparing avilyre:fix/astro-url-pathname-returns-wrong-extension (fdc8251) with main (ad26fa2)

Summary

✅ 6 untouched

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

Labels

pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Astro.url.pathname returns wrong value when build.format=preserve, when building

1 participant