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 badges1 Answer
Reset to default 8Don't use Link
for pages outside of your app. Simply use a standard <a>
tag.
本文标签: javascriptReact link to static html pageStack Overflow
版权声明:本文标题:javascript - React link to static html page? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744272133a2598233.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论