Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Improve specs redirects #4895

Merged
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
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