mirror of
https://github.com/flarum/framework.git
synced 2025-02-20 05:57:15 +08:00
Frontend extender: Route to correct frontend
So far, we always added routes configured via this extender to the forum frontend. Not correct.
This commit is contained in:
parent
14393ec53e
commit
c61badd754
|
@ -87,7 +87,7 @@ class Frontend implements ExtenderInterface
|
||||||
foreach ($this->routes as $route) {
|
foreach ($this->routes as $route) {
|
||||||
$routes->get(
|
$routes->get(
|
||||||
$route['path'], $route['name'],
|
$route['path'], $route['name'],
|
||||||
$factory->toForum($route['content'])
|
$factory->toFrontend($this->frontend, $route['content'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user