Skip to content

Commit 809c16f

Browse files
committed
Fix snapshot docs URL, currently only appears on snapshot docs
1 parent d8eed54 commit 809c16f

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)