Skip to content

Commit 48501e8

Browse files
authored
Merge pull request #14900 from apache/snapshot-docs-url
Fix snapshot docs URL, currently only appears on snapshot docs
2 parents d8eed54 + 809c16f commit 48501e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-gradle/docs-core/src/main/groovy/grails/doc/dropdown/CreateReleaseDropDownTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ abstract class CreateReleaseDropDownTask extends DefaultTask {
154154
softwareVersions
155155
.forEach { softwareVersion ->
156156
final String versionName = softwareVersion?.versionText
157-
final String href = GRAILS_DOC_BASE_URL + "/" + versionName + "/" + pageRelativePath
157+
final String href = GRAILS_DOC_BASE_URL + "/" + (versionName?.endsWith("-SNAPSHOT") ? 'snapshot' : versionName) + "/" + pageRelativePath
158158
options << option(href, versionName, version == versionName)
159159
}
160160

0 commit comments

Comments
 (0)