admin管理员组

文章数量:1401469

i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the root of the project along side with index.html which is the react app.

The problem is that the link to /privacy.html is caught by the <Route path='*' ponent={NotFoundView} />

Is there a work around for this?

i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the root of the project along side with index.html which is the react app.

The problem is that the link to /privacy.html is caught by the <Route path='*' ponent={NotFoundView} />

Is there a work around for this?

Share Improve this question asked Dec 29, 2015 at 9:52 IsrahackIsrahack 4792 gold badges7 silver badges15 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

Don't use Link for pages outside of your app. Simply use a standard <a> tag.

本文标签: javascriptReact link to static html pageStack Overflow