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

206
Views
Why can't I navigate to the detail page when I'm using a link component in react

In react, I want to use this code to link the detail page in my main list page. This is the react code:

{
      title: 'more',
      render: (val, row) => {
            return (<Link to={`/zhuolian/activity/detail/${row.id}`}>more...</Link>);
      },
    },

and this is my route config:

{
        path: '/zhuolian',
        name: 'zhuolian',
        icon: 'contacts',
        routes:[
          {
            path: '/zhuolian/activity',
            name: 'activity',
            hideChildrenInMenu: true,
            component: './xRepo/Activity',
            routes:[
              {
                path: '/zhuolian/activity/detail/:activityId',
                name: 'detail',
                component: './xRepo/Activity/detail',
              },
            ]
          },
          
        ]
      },

I am now using the router version "react-router-dom": "^4.3.1", and when I click on more, the log shows this warning:

index.js:1 Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack

and it did not navigate to the detail page. I have tried to add the replace in the link component but it still did not work. Am I missing something? What should I do to make it link to another detail page when I click more?

about 4 years ago · Juan Pablo Isaza
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!