js/donate-button.v2.js now redirects to the asset pack
This commit is contained in:
parent
f5cbca1f26
commit
8d4b9d172d
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
class WidgetController < ApplicationController
|
||||
def v2
|
||||
redirect_to(asset_pack_url("donate-button-v2.js"))
|
||||
expires_in 10.minutes
|
||||
head :found, location: helpers.asset_pack_url("donate-button-v2.js"), content_type: "application/javascript"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -259,4 +259,4 @@ Rails.application.routes.draw do
|
|||
|
||||
get '/js/donate-button.v2.js' => 'widget#v2'
|
||||
root to: 'front#index'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue