From 820d8b581523f946cb25be6988ef9aba6875f252 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 22 May 2018 12:09:49 -0400 Subject: [PATCH] Clarify the true behavior of hrefTargetBlank #blackfriday Fixes https://github.com/gohugoio/hugoDocs/issues/428 Ref: https://discourse.gohugo.io/t/internal-links-in-same-tab-external-links-in-new-tab/11048/8?u=kaushalmodi --- content/en/readfiles/bfconfig.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/readfiles/bfconfig.md b/content/en/readfiles/bfconfig.md index 5388694dc..2d62c310d 100644 --- a/content/en/readfiles/bfconfig.md +++ b/content/en/readfiles/bfconfig.md @@ -41,7 +41,7 @@ `hrefTargetBlank` : default: **`false`**
Blackfriday flag: **`HTML_HREF_TARGET_BLANK`**
- Purpose: `true` opens external links in a new window or tab. + Purpose: `true` opens external links **absolute** links in a new window or tab. While the `target="_blank"` attribute is typically used for external links, Blackfriday does that for _all_ absolute links ([ref](https://discourse.gohugo.io/t/internal-links-in-same-tab-external-links-in-new-tab/11048/8)). One needs to make note of this if they use absolute links throughout, for internal links too (for example, by setting `canonifyURLs` to `true` or via `absURL`). `plainIDAnchors` : default **`true`**