@antora/redirect-producer
Advanced tools
Comparing version 3.1.9 to 3.1.10
@@ -65,5 +65,4 @@ 'use strict' | ||
return urlPath === '/' ? '' : urlPath | ||
} else { | ||
return '' | ||
} | ||
return '' | ||
} | ||
@@ -124,5 +123,4 @@ | ||
return `location ^~ ${fromUrl}/ { rewrite ^${regexpEscape(fromUrl)}/(.*)$ ${toUrlWithTrailingSlash}$1 redirect; }` | ||
} else { | ||
return `location = ${fromUrl} { return 301 ${toUrl}; }` | ||
} | ||
return `location = ${fromUrl} { return 301 ${toUrl}; }` | ||
}) | ||
@@ -129,0 +127,0 @@ return [new File({ contents: Buffer.from(rules.join('\n') + '\n'), out: { path: '.etc/nginx/rewrite.conf' } })] |
{ | ||
"name": "@antora/redirect-producer", | ||
"version": "3.1.9", | ||
"version": "3.1.10", | ||
"description": "Produces redirects (HTTP redirections) for pages in an Antora site.", | ||
@@ -12,3 +12,6 @@ "license": "MPL-2.0", | ||
"homepage": "https://antora.org", | ||
"repository": "gitlab:antora/antora", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://gitlab.com/antora/antora.git" | ||
}, | ||
"bugs": { | ||
@@ -15,0 +18,0 @@ "url": "https://gitlab.com/antora/antora/issues" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10274
0
173