Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
dynamic routing with nextjs before the page name

I am using react with Nextjs and i would like to use a dynamic name before the page name instead after.

Per example i have 2 files about.tsx and music.tsx wish loads as:

localhost:3000/about

localhost:3000/music

What i would like is:

localhost:3000/nirvana/about

localhost:3000/nirvana/music

localhost:3000/metalica/about

localhost:3000/metalica/music

and to be able to identify the dynamic slug before the page name, so i can know which band name is, does anyone know how to do this with nextjs?

thank you

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can create pages/[music_type]/about.js and pages/[music_type]/music.js files to make music_type dynamic. You can even add dynamic route for '/about ' and '/music' by creating pages/[music_type]/[sub].js

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!