1

Is it possible to send multiple parameters in a single line (without separating them with / )

The params should be like myawesomeurl.com/?start=true&year=2000

My router code is:

 <Router>
    <Route  path="/:pause?&:year?" component={Main} />
  </Router>

The problem I'm having is that the Main component is only rendered if I access http://myawesomeurl.com/& with the & at the end or send parameters.

Thanks!

Vikas Yadav
  • 3,094
  • 2
  • 20
  • 21
lele
  • 442
  • 6
  • 14

0 Answers0