8000 add redirect for scala · mongodb/docs-java-other@eed89f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit eed89f9

Browse files
committed
add redirect for scala
1 parent 60d2107 commit eed89f9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,16 @@
6060
<link rel="canonical" href="https://www.mongodb.com/docs/languages/java/drivers/java-rs/v4.x/"/>
6161
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
6262
<meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/drivers/java-rs/v4.x/" />
< 8000 /td>
63+
{{ end }}
64+
65+
{{ if ( and ( findRE ".*mongo-java-driver/5.0/driver-scala/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
66+
<link rel="canonical" href="https://www.mongodb.com/docs/languages/scala/scala-driver/v5.0/"/>
67+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
68+
<meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/scala/scala-driver/v5.0/" />
69+
{{ end }}
70+
71+
{{ if ( and ( findRE ".*mongo-java-driver/4.*/driver-scala/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
72+
<link rel="canonical" href="https://www.mongodb.com/docs/languages/scala/scala-driver/v4.x/"/>
73+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
74+
<meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/scala/scala-driver/v4.x/" />
6375
{{ end }}

0 commit comments

Comments
 (0)
0