forked from OpenNeo/impress
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!
This commit is contained in:
parent
73a49c1fec
commit
18076badcd
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ module ItemsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
SHOP_WIZARD_URL_TEMPLATE = Addressable::Template.new(
|
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)
|
def shop_wizard_url_for(item)
|
||||||
SHOP_WIZARD_URL_TEMPLATE.expand(string: item.name).to_s
|
SHOP_WIZARD_URL_TEMPLATE.expand(string: item.name).to_s
|
||||||
|
|
Loading…
Reference in a new issue