Questions tagged [nested-routes]

Nested routes allow to capture relationship in your routing.

http://guides.rubyonrails.org/routing.html#nested-resources

462 questions
2
votes
1 answer

Sub pages not showing with React Router

I'm currently working on a site that offers expeditions, and one of the pages is supposed to have nested routes inside it eg: /expeditions/antarcticasouthgeorgia. I've been following some of the other questions asked about this, and I can't seem to…
jerome
  • 411
  • 2
  • 11
  • 23
2
votes
3 answers

Dynamic nested routes in Next.js

I am building an e-commerce web app in Next.js and I got stuck on product filtering. Let's say there are 3 possible filtering options: by category - dioptric / sunglasses by sex - men / women by brand - rayban / gucci Now, the filters should work…
tomasxboda
  • 539
  • 3
  • 15
2
votes
1 answer

Routing inside subcomponents not working while using 'exact' : ReactJs

I have created one simple project with 3 main components/pages. Home page (path: "/") with is login page. once we click on login button, will create a dynamic URL "admin/random_num LogIn.js import { Link, Route } from "react-router-dom"; import…
bhagat singh
  • 35
  • 1
  • 6
2
votes
1 answer

Child route not showing in Vue-router

I've following object in Vue router. { path: "/books", name: "books", component: Books, children: [ { path: ":id", name: "books.detail", component: BookDetail, } ] } Within Books.vue component, there're…
Mir Stephen
  • 1,758
  • 4
  • 23
  • 54
2
votes
1 answer

Nested Routing is not displaying the right Component

I'm trying to display CollectionPage Component from ShopPage component as a nested route that receives collectionId as a param but I get an empty page. These are my components. Shop Page : import React from 'react'; import CollectionsOverview from…
Amine
  • 57
  • 7
2
votes
1 answer

Can anyone tell me the flow of router that how it treats the route configuration and nested routes in lazy-loaded modules?

I want my lazy-loaded module in their children components to be parameterizly loaded in one . My app.routing.module is const routes: Routes = [ { path: 'dashboard', component: DashboardComponent }, { path:…
Muhammad Mehdi
  • 531
  • 1
  • 5
  • 14
2
votes
1 answer

Can't print child components of nested routes on React Router v5

I can't seem to figure out how to print child routes in React Router v5. Here is how I have setup my application. 1) index.jsx ReactDOM.render(
2
votes
1 answer

Building nested routes for a resource that use acts_as_tree

do you know how to generate dynamically routes such as: ... (/:parent_id(/:parent_id(/:parent_id(/:parent_id))))/:id I ask this question because I have a Folder model which acts as tree (it have a parent_id field), and its to_param method return…
Zag zag..
  • 6,041
  • 6
  • 27
  • 36
2
votes
1 answer

Rendering nested router view without parent router view - React.js

Hello community :) My first Q here. (There were couple of similar questions but they didn't answer my particular code issue and I tried them to apply but without success.) So I would like to render the child component in nested route without the…
Verusch
  • 21
  • 2
2
votes
1 answer

Rails 3 routing with resources under an optional scope

I have setup my versioned API like this with only a small tweak for backwards compatibility. In my routes I have: scope '(api(/:version))', :module => :api, :version => /v\d+?/ do … scope '(categories/:category_id)', :category_id => /\d+/…
coneybeare
  • 33,113
  • 21
  • 131
  • 183
2
votes
1 answer

Error Rendering with Nested Routes

I am trying to maintain a pretty URL when having a user messaging with failed validation. I have a routes file that looks like the following: # For logged users convenience # example.com/messages # instead of:…
Ben Orozco
  • 4,361
  • 4
  • 33
  • 49
2
votes
2 answers

How to reuse a named view with a nested nested route in Vue?

I have searched in lots of parts of Internet (stackoverflow,vue documentation, blogs, etc.) and I haven´t found the solution that I need. So, the issue is the following: routes.js { path:'/', components:{ allPageView:LytSPA }, …
Ivan Cabrera
  • 337
  • 4
  • 9
2
votes
1 answer

Angular routes to components inside a component

I´m building a nav component in angular, that allows the user to go to a component inside the App.component. This nav component is also inside the App component. All of the components are shown from the begin, i wanted the nav was able to find the…
Luis Luis Maia Maia
  • 681
  • 1
  • 10
  • 30
2
votes
2 answers

Nuxt nested routes

Im having a basic universal app created with Nuxt. Im new with vue and nuxt and im trying to understand how routing works, to be more specific how nested routes works. So my projects structure is ├── parent │ ├── child1.vue │ └── child2.vue ├──…
mart cube
  • 633
  • 1
  • 15
  • 30
2
votes
0 answers

Angular 2 nested routing issue (Uncaught (in promise): TypeError: Cannot read property 'component' of null)

I have parent route /details which show employee list in table. I want to open each employee details below its employee row So only one employee details should be visible at a time just below its row. In short want to create nested expandable table…
Dipak Telangre
  • 1,792
  • 4
  • 19
  • 46