diff --git a/lib/spree_static_content.rb b/lib/spree_static_content.rb index a40032d2..abc467f0 100644 --- a/lib/spree_static_content.rb +++ b/lib/spree_static_content.rb @@ -12,7 +12,7 @@ def self.remove_spree_mount_point(path) class Spree::StaticPage def self.matches?(request) - return false if request.path =~ /(^\/+(admin|account|cart|checkout|content|login|pg\/|orders|products|s\/|session|signup|shipments|states|t\/|tax_categories|user)+)/ + return false if request.path =~ /(^\/+(admin|account|cart|checkout|content|login|pg\/|orders|products|s\/|session|signup|shipments|states\/|tax_categories|user)+)/ !Spree::Page.visible.find_by_slug(request.path).nil? end end