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

118
Views
Not Redirection on a component that contains id parameter on Production React js

I'm working on a Reactjs WEB APP that hosts a meeting and creates a sharable link to join the meeting. Link is created like that: https://some_domain_name/screen_Share/8MoLgQnPjFcE-7v_bo967rIAueJ7Lv1zpIkxDtjJOMM

It is working fine on localhost, but at Production, it is giving an error in console with a blank page:

Error Image after clicking on the Meeting Link

Component Route is :

<Route exact path="/screen_Share/:id" component={screen_Share}/>

At Deployement, the Web.config file is:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Meetup" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="/" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

I have tried many things but no luck maybe I have to add some rules in Web.config file at deployment. Please guide me on how to resolve this issue.

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

0

This issues has been resolved. I have added this in tag in index.html file.

<base href="/" />
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!