Group Routes error
See original GitHub issueI want to group all my public routes. I have defined my routes as under
var publicRoutes = FlowRouter.group({
prefix: '/'
});
publicRoutes.route('/', {
name: 'home',
action: function() {
BlazeLayout.render('mainLayout', {contents: 'HomePage'});
}
});
publicRoutes.route('/signup', {
name: 'signup',
action: function() {
BlazeLayout.render('mainLayout', {contents: 'SignUpPage'});
}
});
The home route is working fine where as I am getting “There is no route for the path: /signup” for the second route.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Route group error - Laracasts
Hi I'm creating some routes for my API and I'm getting this error, and I don't know how to fix it. you passed...
Read more >Routing Error Due to a group prefix in my route - Stack Overflow
In your CostIncludeController@index, add the new variable. The router is expecting you to handle two variables. public function index($page, ...
Read more >HTTP Routing - Laravel - The PHP Framework For Web Artisans
Route groups allow you to share route attributes, such as middleware or namespaces, across a large number of routes without needing to define...
Read more >error in adding routename to the group route #23494 - GitHub
if i add route name for group route i have got this error. Illuminate\Routing\Router::loadRoutes(): Failed opening required 'Array' ...
Read more >State handlers | Dialogflow CX - Google Cloud
To make routes reusable, you can define route groups. These groups are a resource for the entire flow. For example, you may want...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue could be the prefix on the route definition. If you leave it blank it should be able to work.
I think the best use case scenario for groups would be
/admin, /public, /membersarea
basically named url prefixes. In this case havingprefix '/'
doesn’t really make much sense since that would be the root and probably all routes inherit from this.I think we can close this.