# JavaScriptで汎用的なユーザー請求ページURLが機能しない

**URL:** <https://meta.discourse.org/t/generic-url-to-user-billing-page-in-javascript-not-working/182375>\
**Category:** Development\
**Tags:** subscriptions\
**Created:** [2021 年 3 月 7 日午前 8:34 UTC](https://meta.discourse.org/t/generic-url-to-user-billing-page-in-javascript-not-working/182375 "2021-03-07T08:34:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021 年 3 月 7 日午後 4:46 UTC](https://meta.discourse.org/t/generic-url-to-user-billing-page-in-javascript-not-working/182375/2 "2021-03-07T16:46:13Z")

</div>

それは、ユーザーが `/my/*` の URL に到達しないからではないでしょうか？これは単なるスマートなリダイレクトだからです。

例えば、`/my/preferences` は `/u/falco/preferences` にリダイレクトされるため、あなたのコードにある `if` 文がトリガーされるような `/my/preferences` ページには、私は決して到達しません。

---

_[View the full topic](https://meta.discourse.org/t/generic-url-to-user-billing-page-in-javascript-not-working/182375)._
