Skip to content

Commit

Permalink
[i18n] Improve specs redirects (#4895)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Jul 27, 2024
1 parent 3b7594c commit 6e31241
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ IgnoreURLs: # list of regexs of paths or URLs to be ignored
- ^(/..)?/docs/languages/net/(metrics-api|traces-api)/
- ^((/..)?/docs/migration/)?opencensus/$
- ^(/community/end-user/)?feedback-survey/$
- ^/../docs/specs/?$ # non-default locale spec redirect

- ^https://deploy-preview-\d+--opentelemetry.netlify.app/
- ^https://www\.googletagmanager\.com
Expand Down Expand Up @@ -72,5 +73,3 @@ IgnoreURLs: # list of regexs of paths or URLs to be ignored
- ^https://wikipedia.org/wiki/(S.M.A.R.T|Hop_)
# TODO move into content/en/blog/2023/contributing-to-otel/index.md once https://github.com/open-telemetry/opentelemetry.io/issues/3889 is implemented
- ^https://shorturl.at/vLYZ0$
# TODO remove the following temporary ignore rule (@chalin)
- ^/en/docs/specs$
8 changes: 2 additions & 6 deletions content/ja/docs/specs/_index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
title: Specifications
linkTitle: Specs ↗
description: _Redirect page_
weight: 960
# _build: { render: link }
redirect: /en/docs/specs 301!
redirects: [{ from: '*', to: '/en/docs/specs/:splat' }]
_build: { render: link }
redirects: [{ from: '*', to: '/docs/specs/:splat' }]
default_lang_commit: 3b44fbfa49ced919daea01123abfaed836d2d0ec
---

Netlify redirect target: [{{% param "title" %}}]({{% param "redirect" %}}).
2 changes: 0 additions & 2 deletions layouts/partials/redirects/sites.redirects
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

{{/* Process non-default languages. */ -}}

/ja/docs/specs /en/docs/specs/ 301!

{{ range after 1 .Sites -}}

{{ $siteLang := .Language.Lang -}}
Expand Down

0 comments on commit 6e31241

Please sign in to comment.