【发布时间】:2021-09-12 15:46:33
【问题描述】:
我在 Svelte 组件中有一个链接。此链接的目标由保留代理服务器处理,因此链接目标不是 Svelte 应用程序的一部分,即使它与 Svelte 应用程序共享相同的 URL 路径。
如果我单击链接,Svelte 会尝试使用其内部路由器解析链接。如何强制 Svelte 中的链接由 Web 浏览器加载并被内部路由器跳过?
我的链接代码是:
<!-- /docs/ is served from the reverse proxy by the web server and not part of Svelte -->
<a href="https://tradingstrategy.ai/docs/index.html">Documentation</a>
【问题讨论】: