Skip to content
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

fix: make Router.reachable/2 less strict #698

Merged
merged 7 commits into from
Dec 10, 2024
Merged

fix: make Router.reachable/2 less strict #698

merged 7 commits into from
Dec 10, 2024

Conversation

leandrocp
Copy link
Contributor

Allow root paths / to coexist and start beacon sites even if there's a conflict to allow nested beacon pages as /:page to be served, even in the presence of another live / route.

This change will potentially cause more sites to be started but being to restrictive is a breaking change either, so we're partially reverting to v0.2 behavior.

Allow root paths / to coexist and start beacon sites even if there's a
conflict to allow nested beacon pages as /:page to be served,
even in the presence of another live / route
@leandrocp leandrocp requested a review from APB9785 December 10, 2024 22:03
Copy link
Contributor

@APB9785 APB9785 left a comment

Choose a reason for hiding this comment

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

could it be a problem if someone defines

live "/:page"
beacon_site "/"

?

@leandrocp
Copy link
Contributor Author

could it be a problem if someone defines

live "/:page"
beacon_site "/"

?

The site wouldn't boot in that scenario 35b157b

@leandrocp
Copy link
Contributor Author

@APB9785 merging this one now because I need that code :D
but we can review/refine it tomorrow

@leandrocp leandrocp merged commit 6b05085 into main Dec 10, 2024
3 checks passed
@leandrocp leandrocp deleted the lp-boot-site-root branch December 10, 2024 23:33
@absowoot
Copy link

absowoot commented Dec 11, 2024

This PR fixed my issue where a site would not boot because it was not first in the router, but it may have introduced a new problem. When viewing pages built with Beacon, images only load sometimes. Below is a screen recording of refreshing the media library page.

Screen.Recording.2024-12-11.at.10.27.02.AM.mov

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.

3 participants