Questions tagged [dynamic-routing]

89 questions
0
votes
1 answer

Use dynamic routes while maintaining existing file structure with Next.js

I currently have a file structure like so within the 'src' directory: |____pages | |____FirstPage | | |____First.js | | |____index.js | |____SecondPage | | |____Second.js | | |____index.js | |____FirstDynamicRoutePage | |…
bfeliz
  • 31
  • 5
0
votes
1 answer

Problem going from one profile/:id to another using Vue js Dynamic Route Matching

my route is as: `path: '/apps/user/user-view/:userId', name: 'app-user-view'` I also have :to="{name: 'app-user-view', params: { userId: $route.params.userId [+1] }}" which I want to take me to the next user (user/1 to…
0
votes
2 answers

Dynamic Name Routing / Dynamic Route Matching in VueJS

I have some products that are being iterated over and being displayed. I'd like to use the images of the products as links to the specific page of each individual product. I want each product page to pull from the same template, substituting the…
Daniel Radosa
  • 27
  • 1
  • 8
0
votes
0 answers

Router events like routeChangeStart not firing when using nested dynamic routes in nextjs

In my nextjs project, I'm using nested dynamic routes like so: /smth/[route1]/[route2]. I tryied adding loading indicator like in the example nextjs loading example. When i try to navigate from /smth to /smth/r1 the event routeChangesStart is fired…
OSEMA TOUATI
  • 153
  • 10
0
votes
1 answer

(Beginner) Flask dynamic routing not working

I'm just starting to learn Flask but I can't even get through this beginner step. I have tried to make a dynamic URL route as below but when I go to http://127.0.0.1:5000/home for example, it says "NOT FOUND". Any help appreciated! from flask import…
0
votes
1 answer

Nuxt dynamic routes based on Firebase data

I'm having a Nuxt app in SPA mode hosted on Netlify. I'm authenticating and storing users data with Firebase. I want to display all users profile on a dynamic routes. For example https://www.myapp.com/users/martcube (where "martcube" is the…
mart cube
  • 199
  • 3
  • 20
0
votes
3 answers

Create Dynamic route and render component in reactjs

I am new in ReactJs. I need a route like localhost:3000/directory/category/region/brandName and for the same route, I need to render a component Sample of URL be…
Vicky Kumar
  • 151
  • 16
0
votes
1 answer

NextJS Dynamic Routing, re-render specific Child Components

I have index.js page, located at pages/posts/index.js I can render this page with Link: this is my index.js page: function mainComponent({props}) { <>
Chiranjhivi Ghimire
  • 1,584
  • 1
  • 13
  • 20
0
votes
1 answer

How nuxt generate dynamic routes

As nuxt's doc said: Dynamic routes are ignored by the generate command (yarn generate). Nuxt does not know what these routes will be so it can't generate them. and they have a solution for creating static html files for dynamic…
BeHappy
  • 2,627
  • 2
  • 8
  • 31
0
votes
1 answer

How to display item vue when i click on vue listing all items?

I am new on vueJS/Nuxt and i a building a blog using wordpress as headless CMS. Wordpress expose data from rest api and in vuejs i use those data and display them on page. I have this project structure : I am facing a problem when i move from…
Pracede
  • 3,890
  • 14
  • 54
  • 101
0
votes
1 answer

how to load routes dynamically from database in asp.net webforms

I want to load routes on every requests, i have tried to put it this code RegisterBundles(RouteTable.Bundles) to the Application_Beginrequest. seems this method helped me but also now when i refresh the page i am getting an errors on browser.…
Hallowen
  • 123
  • 10
0
votes
1 answer

Next.js : no response when request goes high in server-side rendering page(dynamic routing)

I’m using Next.js and custom server(express js) as Next.js example in GitHub. I have a page, for example “/post/[id]”, which is using next.js dynamic routing. The problems is, when the requests for this page goes high, response time goes high too…
0
votes
1 answer

How to use dynamic routing to pass information / react

The ButtonList returns a list of filtered Buttons that should each link to a new page. I would like to do it by adding dynamic routes, but I don't know how to write the code... How do I use history.push correctly? Any help would be highly…
0
votes
2 answers

Get id of item clicked and use it for creating dynamic url in vuejs

I have a vue bootstrap table displaying, in each row, few properties of objects of an array (got through an api call with axios). Every row has a button that should redirect me to a detail page, with more properties of that object, plus a map. I…
fdR
  • 185
  • 4
  • 16
0
votes
1 answer

Problem when loading routes from DB dynamically in angular 2

please help with a problem I have. I'm loading routes from a DB through a web service and everything work as expected when using links to those routes. But when I refresh the page or I write directly the url in the adress bar the route does not…