From be9e9c0117fb6c08f6f055e3973a7a4872b95409 Mon Sep 17 00:00:00 2001 From: Justin DiRose Date: Mon, 2 Nov 2020 10:20:31 -0600 Subject: [PATCH] FIX: Make URLs subfolder friendly (#29) Not all URLs in Subscriptions were not subfolder install friendly. This commit uses link-to in places its needed to properly set URLs if on a subfolder install. --- .../discourse/templates/components/product-list.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/templates/components/product-list.hbs b/assets/javascripts/discourse/templates/components/product-list.hbs index b016f08..9b48aa6 100644 --- a/assets/javascripts/discourse/templates/components/product-list.hbs +++ b/assets/javascripts/discourse/templates/components/product-list.hbs @@ -13,7 +13,9 @@
{{#if product.subscribed}} ✓ {{i18n 'discourse_subscriptions.subscribe.purchased'}} - {{I18n 'discourse_subscriptions.subscribe.go_to_billing'}} + {{#link-to "user.billing.subscriptions" currentUser.username class="billing-link"}} + {{i18n 'discourse_subscriptions.subscribe.go_to_billing'}} + {{/link-to}} {{else}} {{#link-to "s.show" product.id disabled=product.subscribed class="btn btn-primary"}} {{i18n 'discourse_subscriptions.subscribe.title'}}