Nested routes allow to capture relationship in your routing.
Questions tagged [nested-routes]
462 questions
0
votes
1 answer
How can i nest child components in next js like react outlet?
I'm a react JS developer and trying to create nested childrens in nextjs. In react i used the outlet to nest the child components but how can i nest child in next js.
Folder Structure:
https://i.stack.imgur.com/IF32k.png
Index.js:…

Sohaib Butt
- 57
- 1
- 8
0
votes
0 answers
Best Practice to manage Routes in Flutter as bellow route graph
I'm struggling on structure of my routes. Hoping get help to sort it out. Bellow image represent my route tree. I would like to get to know best way to handle these kind of situations.
I'm currently using IndexedStack to manage the bottom…

Amal Madawa
- 187
- 1
- 14
0
votes
1 answer
Page not Found is not working with nested routes in react-router-dom v6
I have setup the routing as:
} />
} >
} />

Soumi Ghosh
- 21
- 6
0
votes
1 answer
Couldn't find Category with 'id'=id
When i click my link_to, it takes to http://localhost:3000/categories/id rather than http://localhost:3000/categories/1. When I put the 1 into the URL it then takes me to the correct page, but I want it to work through the link, and so i suspect it…

sperrin98
- 3
- 1
0
votes
1 answer
Custom nested route not working in Strapi
I just started using Strapi, so this is probably a silly question. But I was following a course and at one point I had a create a custom route in strapi. The course is using strapi v3 but I am using strapi v4. So I created a custom route following…

wasituf
- 1
- 2
0
votes
0 answers
Rails create custom view and route similar to new.html.erb
I'm looking to create a custom nested view that behaves similar to new.html.erb but not exactly sure how to do so with Rails 6.
In my routes I've defined the following -
resources :courses do
resources :courselocations, shallow: true do
member…

Arash Hadipanah
- 115
- 9
0
votes
1 answer
Angular nested routes showing blank page
I want to make the nested routes in angular. I want the customer to navigate into the shop and add products to the cart, when done adding products to the cart, proceed to checkout.
Below is my app-routing-module.ts
import { NgModule } from…
0
votes
1 answer
Rails 6 & route for custom post- action for nested resource & form
I need to make a separate create action for the nested Answer resource, such as create_xhr, which will be called in the form on the parent resource.
This is what the route for the Answer resource looks like:
namespace :admin do
resources…

ChildrenofkoRn
- 75
- 1
- 7
0
votes
1 answer
How to create a correct URL according to nested routes?
I am trying to create some nested routes in a react project using the useRoutes hook. But I am struggling to make the URL show as I want.
The example struture project is this one:
- public
- src
- Components
- Header.js
-…

S.Marx
- 977
- 10
- 14
0
votes
1 answer
Nested routing without changing part of UI flutter
I want to create Nested routing without changing part of UI
In the image i want to change the route of B portion only. 'B' can have multiple routes like after clicking to B, screen should change to B1 then B2 and so on and while doing this the…

Jay Parmar
- 97
- 2
- 14
0
votes
1 answer
Rails 7: Nested resources/forms not working
i have three models:
class Checklist < ApplicationRecord
belongs_to :page
has_many :groups
has_rich_text :description
# validates_presence_of :title
end
class Group < ApplicationRecord
belongs_to :checklist
end
class Page <…

pkberlin
- 812
- 1
- 13
- 31
0
votes
1 answer
Understanding how nested routes work in Rails
I am a bit confused.
This is my routes file:
When I try this, the link will not be as expected (cl is my checklist):
<%= page_checklist_path(cl) %>
The renders string of the link as:
/pages/31/checklists/4
But it should…

pkberlin
- 812
- 1
- 13
- 31
0
votes
2 answers
Rails 3: named parameter routes break link_to
I'm trying to create a Rails app that divides the users by groups and sub-groups and offers a customized site to each sub-group. I figured the easiest way to do that was to create scope with named parameters:
scope ":group/:subgroup/" do
devise_for…

roisin47
- 1
0
votes
1 answer
How to use only PART of the functionality in nested routes NodeJS
So I have a router schoolsRouter where all the school-specific functionality is being handled { login school, adding a new teacher, ...etc.). And I want the admin of the app to be able to add and delete new schools. Now the pattern I'm using…

M.Olaby
- 5
- 3
0
votes
1 answer
Rails nested routes not filtering
I have two models: Product and ProductType:
Product:
class Product < ActiveRecord::Base
default_scope :order => 'name'
has_many :sales
belongs_to :product_type, :class_name => "ProductType", :foreign_key => "type_id" …

jyanks
- 2,356
- 1
- 19
- 36