Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Routes in Firefly webapps

Avatar

Avatar
Employee
harpreet_ahluwa
Employee

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Employee
harpreet_ahluwa
Employee

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
harpreet_ahluwa
Employee

20-09-2020

I have a simple webapp and have used react router, however within the application the url changes to the route part which is not found by firefly.

Here is the webapp with links

 

 

 

 

 <Router>
          <div>
            <ul>
              <li>
                <Link to='/'>Home</Link>
              </li>
              <li>
                <Link to='/button'>Button</Link>
              </li>
            </ul>
            <hr />
            <Switch>
              <Route exact path='/'>
                <Home/>
              </Route>
              <Route path='/button'>
              <ButtonDemo />
              </Route>
            </Switch>
          </div>
        </Router>

 

 

 

 

The URL on navigation is https://experience.adobe.com/?devMode=true#/@ags1008/custom-apps/button which results

in Error 408 Request Timeout.

 

Any recommendation on how to achieve this navigation.

 

 

firefly react-router routes

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Applaud 5
Employee
duypnguyen
Employee

Likes

24 likes

Total Posts

156 posts

Correct Reply

31 solutions
Top badges earned
Applaud 5
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Applaud 5
Employee
duypnguyen
Employee

Likes

24 likes

Total Posts

156 posts

Correct Reply

31 solutions
Top badges earned
Applaud 5
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
duypnguyen
Employee

21-09-2020

Hi @harpreet_ahluwa - in the latest CLI release we enhanced the web UI template with react router. Please update your CLI `npm install -g @adobe/aio-cli` and try creating a new app with web assets.