mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
Fix reference documentation redirects
Closes gh-11018
This commit is contained in:
parent
5a95ebd1ef
commit
0a2a327476
@ -91,6 +91,7 @@ function createSymbolicVersionAlias (component, version, symbolicVersionSegment,
|
|||||||
|
|
||||||
function computeOut (src, family, version, htmlUrlExtensionStyle) {
|
function computeOut (src, family, version, htmlUrlExtensionStyle) {
|
||||||
let { component, module: module_, basename, extname, relative, stem } = src
|
let { component, module: module_, basename, extname, relative, stem } = src
|
||||||
|
if (component === 'ROOT') component = ''
|
||||||
if (module_ === 'ROOT') module_ = ''
|
if (module_ === 'ROOT') module_ = ''
|
||||||
let indexifyPathSegment = ''
|
let indexifyPathSegment = ''
|
||||||
let familyPathSegment = ''
|
let familyPathSegment = ''
|
||||||
@ -120,8 +121,11 @@ function computePub (src, out, family, version, htmlUrlExtensionStyle) {
|
|||||||
const pub = {}
|
const pub = {}
|
||||||
let url
|
let url
|
||||||
if (family === 'nav') {
|
if (family === 'nav') {
|
||||||
const urlSegments = version ? [src.component, version] : [src.component]
|
const component = src.component || 'ROOT'
|
||||||
if (src.module && src.module !== 'ROOT') urlSegments.push(src.module)
|
const urlSegments = component === 'ROOT' ? [] : [component]
|
||||||
|
if (version) urlSegments.push(version)
|
||||||
|
const module_ = src.module || 'ROOT'
|
||||||
|
if (module_ !== 'ROOT') urlSegments.push(module_)
|
||||||
// an artificial URL used for resolving page references in navigation model
|
// an artificial URL used for resolving page references in navigation model
|
||||||
url = '/' + urlSegments.join('/') + '/'
|
url = '/' + urlSegments.join('/') + '/'
|
||||||
pub.moduleRootPath = '.'
|
pub.moduleRootPath = '.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user