Skip to content

Commit c2b9c08

Browse files
Use springFrameworkVersion property in docs links
Closes gh-9987
1 parent a06f47f commit c2b9c08

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/manual/spring-security-docs-manual.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ asciidoctorj {
2121
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch"
2222
def securityDocsUrl = "https://docs.spring.io/spring-security/site/docs/$docsTag"
2323
def oldSecurityApiUrl = "https://docs.spring.io/spring-security/site/docs/5.4.x/api/"
24-
def springVersion = "5.3.x"
2524
def securityApiUrl = "$securityDocsUrl/api/"
2625
def securityReferenceUrl = "$securityDocsUrl/reference/html5/"
27-
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springVersion/javadoc-api/"
26+
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/"
27+
def springFrameworkReferenceUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/reference/html/"
2828
attributes 'spring-security-version' : project.version,
2929
'spring-boot-version' : springBootVersion,
3030
revnumber : project.version,
@@ -34,7 +34,8 @@ asciidoctorj {
3434
'old-security-api-url': oldSecurityApiUrl,
3535
'security-api-url': securityApiUrl,
3636
'security-reference-url': securityReferenceUrl,
37-
'spring-framework-api-url': springFrameworkApiUrl
37+
'spring-framework-api-url': springFrameworkApiUrl,
38+
'spring-framework-reference-url': springFrameworkReferenceUrl
3839
attributeProvider resolvedVersions(project.configurations.testRuntimeClasspath)
3940
}
4041

docs/manual/src/docs/asciidoc/_includes/servlet/architecture/filters.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The picture below shows the typical layering of the handlers for a single HTTP r
99
image::{figures}/filterchain.png[]
1010

1111
The client sends a request to the application, and the container creates a `FilterChain` which contains the ``Filter``s and `Servlet` that should process the `HttpServletRequest` based on the path of the request URI.
12-
In a Spring MVC application the `Servlet` is an instance of https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-servlet[`DispatcherServlet`].
12+
In a Spring MVC application the `Servlet` is an instance of {spring-framework-reference-url}web.html#mvc-servlet[`DispatcherServlet`].
1313
At most one `Servlet` can handle a single `HttpServletRequest` and `HttpServletResponse`.
1414
However, more than one `Filter` can be used to:
1515

0 commit comments

Comments
 (0)