aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/history
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-09-14 11:07:46 +0900
committerGitHub <noreply@github.com>2021-09-14 11:07:46 +0900
commit03385cc9f4f157cec2e5fd05f35e6af646055908 (patch)
tree445fcb3a7d033d4ef35c4d4238b28b9630e3dc5b /files/ja/web/api/history
parentb8899e350326af3e53dfad89747761c1c13a3915 (diff)
downloadtranslated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.tar.gz
translated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.tar.bz2
translated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.zip
Web/API以下の文書内のリンクURLを正規化 (#2360)
- /en-US へのリンクを /ja へのリンクに修正 - /ja が付いていないものに /ja を付加 - MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正
Diffstat (limited to 'files/ja/web/api/history')
-rw-r--r--files/ja/web/api/history/replacestate/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ja/web/api/history/replacestate/index.html b/files/ja/web/api/history/replacestate/index.html
index 0cbcbcb37e..c06e22398e 100644
--- a/files/ja/web/api/history/replacestate/index.html
+++ b/files/ja/web/api/history/replacestate/index.html
@@ -36,7 +36,7 @@ translation_of: Web/API/History/replaceState
<pre class="brush: js line-numbers language-js notranslate"><code class="language-js"><span class="keyword token">const </span>stateObj <span class="operator token">=</span> <span class="punctuation token">{</span> foo<span class="punctuation token">:</span> '<span class="string token">bar'</span> <span class="punctuation token">}</span><span class="punctuation token">;</span>
history<span class="punctuation token">.</span><span class="function token">pushState</span><span class="punctuation token">(</span>stateObj<span class="punctuation token">,</span> <span class="string token">''</span><span class="punctuation token">,</span> '<span class="string token">bar.html'</span><span class="punctuation token">)</span><span class="punctuation token">;</span></code></pre>
-<p>上記の 2行の説明は、「<a href="https://developer.mozilla.org/ja/docs/Web/API/History_API/Working_with_the_History_API">History API を取り扱う</a>」の記事の「<a href="https://developer.mozilla.org/ja/docs/Web/API/History_API/Working_with_the_History_API#pushState_%E3%81%AE%E4%BE%8B"><code>pushState()</code> の例</a>」にあります。次に、https://www.mozilla.org/bar.html が以下の JavaScript を実行したとします:</p>
+<p>上記の 2行の説明は、「<a href="/ja/docs/Web/API/History_API/Working_with_the_History_API">History API を取り扱う</a>」の記事の「<a href="/ja/docs/Web/API/History_API/Working_with_the_History_API#pushState_%E3%81%AE%E4%BE%8B"><code>pushState()</code> の例</a>」にあります。次に、https://www.mozilla.org/bar.html が以下の JavaScript を実行したとします:</p>
<pre class="brush: js line-numbers language-js notranslate"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">replaceState</span><span class="punctuation token">(</span>stateObj<span class="punctuation token">,</span> <span class="string token">''</span><span class="punctuation token">,</span> '<span class="string token">bar2.html'</span><span class="punctuation token">)</span><span class="punctuation token">;</span></code></pre>