最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React link to static html page? - Stack Overflow

programmeradmin9浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论