【发布时间】:2021-09-30 00:51:38
【问题描述】:
我一直在尝试在 GithubPages 上部署一个小型 Angular 应用,但我在相关链接方面遇到了一些问题。
例如,有一个在新选项卡中打开的链接,可以在本地完美运行。但在 github 页面上它返回一个 'error404'。
<a href="\assets\pdfs\geography\unit_1\economias_regionales.pdf" target="_blank">
<mat-icon aria-hidden="false" aria-label="pdf-icon">picture_as_pdf</mat-icon>Regional Economies
</a>
我已经检查了documentation,并尝试制作镜像404.html但没有成功。
我也尝试了Deploy Angular 7 to github pages 中要求的解决方案,但也没有用,可能是我弄错了。
完整的项目是here。
有什么建议吗? 感谢您的宝贵时间
【问题讨论】: