8000 add redirect for java rs v4.x · mongodb/docs-java-other@2978a09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2978a09

Browse files
committed
add redirect for java rs v4.x
1 parent 9d01e15 commit 2978a09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/themes/mongodb/layouts/partials/header/metaRedirect.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@
5555
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
5656
<meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/drivers/java-rs/v5.0/" />
5757
{{ end }}
58+
59+
{{ if ( and ( findRE ".*mongo-java-driver/4.*/driver-reactive/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
60+
<link rel="canonical" href="https://www.mongodb.com/docs/languages/java/drivers/java-rs/v4.x/"/>
61+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
62+
<meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/drivers/java-rs/v4.x/" />
63+
{{ end }}

0 commit comments

Comments
 (0)
0