-2

I am trying to link my form page contactpage.php into my Gatsby application. In the navbar (in the Component folder) I have set this code

       <div>
        <a className="int_link_about" href='./contactpage.php'>Contacts</a>    
       </div> 

However, when I click on the link it just downloads the php page, it does not display it. How to actually be redirected to it?

Also, right now in development I manually copied the contactpage.php in the 'public' folder but when I will switch to production, where should I put the page?

Enrico
  • 787
  • 12
  • 28

1 Answers1

0

This is a server related problem which can be checked by direct openning /contactpage.php Solve this and your React code should work. There is a complete thread solving this: https://stackoverflow.com/a/9627827/4281310

Diceros
  • 83
  • 6