# “新标签页”链接在Chrome中同时打开新标签页和（无用的）下载模态框

**URL:** https://meta.discourse.org/t/new-tab-link-opens-both-a-new-tab-and-unhelpfully-a-download-modal-in-chrome/314901
**Category:** Bug
**Tags:** pdf-previews, fixed
**Created:** [2024年七月4日 00:33 UTC](https://meta.discourse.org/t/new-tab-link-opens-both-a-new-tab-and-unhelpfully-a-download-modal-in-chrome/314901 "2024-07-04T00:33:43Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2024年七月4日 00:33 UTC](https://meta.discourse.org/t/new-tab-link-opens-both-a-new-tab-and-unhelpfully-a-download-modal-in-chrome/314901/1 "2024-07-04T00:33:43Z")

</div>

这是关于此 TC 生成的 PDF 链接：

> [@Inline PDF Previews](https://meta.discourse.org/t/inline-pdf-previews/157649):
>
> discourse2Summary Inline PDF Previews is a desktop-only theme component that will allow you to create previews for pdf attachments.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/inline-pdf-previews) (desktop only)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-pdf-previews](https://github.com/discourse/discourse-pdf-previews)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features before after …

如果在 TC 设置中选择“新标签页”（或在方括号内的文件名之前留一个空格），则链接会执行以下 **两项** 操作：

1. 在新标签页中打开 PDF 以直接查看（_期望的行为_）

2. 打开设备的下载模态框（_非常无用_）

## 演示视频

这是使用 Chrome 浏览器通过 ChromeOS 进行演示的。我将很快在其他浏览器上进行测试。

---

_[View the full topic](https://meta.discourse.org/t/new-tab-link-opens-both-a-new-tab-and-unhelpfully-a-download-modal-in-chrome/314901)._
