From 18076badcdc726c712696b717f4e42cf42986b9f Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 21 May 2024 18:00:01 -0700 Subject: [PATCH] Oops, fix Shop Wizard URL! I'm not sure when TNT changed this, but the Shop Wizard has a new canonical URL now! The previous one redirects, but it does *not* pass along query string parameters, so these buttons would correctly go to the Shop Wizard but not auto-fill the name! Now, we go directly to the new canonical URL, with query params in hand! --- app/helpers/items_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/items_helper.rb b/app/helpers/items_helper.rb index 4c0a9f45..d86ad3c2 100644 --- a/app/helpers/items_helper.rb +++ b/app/helpers/items_helper.rb @@ -95,7 +95,7 @@ module ItemsHelper end SHOP_WIZARD_URL_TEMPLATE = Addressable::Template.new( - "https://www.neopets.com/market.phtml?type=wizard{&string}" + "https://www.neopets.com/shops/wizard.phtml{?string}" ) def shop_wizard_url_for(item) SHOP_WIZARD_URL_TEMPLATE.expand(string: item.name).to_s