Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ hugo*

# security-sensitive files
*.gpg

# vim temporary files
*.swp

# hugo lock files
*.hugo_build.lock
6 changes: 3 additions & 3 deletions reference/themes/mongodb/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<title>{{.Title}}</title>

{{- partial "assets/css.html" . -}}

{{- partial "header/metaRedirect.html" . -}}

</head>

<body>
Expand All @@ -25,6 +28,3 @@
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
{{ if ( and ( findRE ".*mongo-java-driver/4.3/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL ))) }}
{{- partial "header/newSiteNotice.html" . -}}
{{ end }}
12 changes: 12 additions & 0 deletions reference/themes/mongodb/layouts/partials/header/metaRedirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ if ( and ( findRE ".*mongo-java-driver/4.4/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL ))) }}
<link rel="canonical" href="https://docs.mongodb.com/drivers/java/sync/4.4/"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url=https://docs.mongodb.com/drivers/java/sync/" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/4.3/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL ))) }}
<link rel="canonical" href="https://docs.mongodb.com/drivers/java/sync/4.3/"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url=https://docs.mongodb.com/drivers/java/sync/" />
{{ end }}