-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "page" prop in paginated dynamic routes doesn’t handle base URLs #10358
Comments
I think it makes sense to add the |
I don't quite understand, what API is this in reference to? What is |
It's https://docs.astro.build/en/reference/api-reference/#pageurlprev. Currently |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When having a
base
option configured, thepage
prop resulting from having a dynamic route with paginated content doesn’t take that base into account.This means that the URLs in
page.url.prev
andpage.url.next
are not prefixed with the configuredbase
. This (strangely) doesn't cause issues in development mode, but when running a preview after build, the links don’t work correctly.What's the expected result?
I believe
page.url.prev
andpage.url.next
should be correctly prefixed withbase
if it is defined in the configuration. If there are issues with that, the behaviour should at least be documented so developers can manually handle the case.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kzsh3y?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: