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

Extensions unable to change default route controller #1819

Closed
dsevillamartin opened this issue Jul 10, 2019 · 1 comment
Closed

Extensions unable to change default route controller #1819

dsevillamartin opened this issue Jul 10, 2019 · 1 comment

Comments

@dsevillamartin
Copy link
Member

This is an unintended side effect introduced in e4514d8.

By not populating the routes after resolving, this means the default route is resolved before any extensions are able to add routes to the route collection.

Neither api nor admin need the same fix as they do not have customizable/backend default routes.

I found the bug after trying to find out why fof/tags suddently stopped passing the correct API document, and discovered that it was not using my custom Content class and instead passing an array of discussions to the page.

@clarkwinkelmann
Copy link
Member

For future reference, this issue also affected our own Tags extension.

Reported and investigated here https://discuss.flarum.org/d/20960-home-page-selection-inconsistent/6

The issue caused Flarum to always pre-load the discussion list, even when Tags was set as the homepage.

Then, when clicking any link that was supposed to filter the discussion list from the Tags page (clicking a tag, or "following", or similar links), the initial load of the discussion list would use that pre-loaded data and ignore the filter, causing all discussions to show without regard to the current selected tag.

The issue was reproduced on the beta test site.

The issue was confirmed solved on the nightly test site.

luceos pushed a commit that referenced this issue Feb 4, 2020
wzdiyb pushed a commit to wzdiyb/core that referenced this issue Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants