From ec8a1b72427f4dc82ac2b44245382575348e9451 Mon Sep 17 00:00:00 2001 From: Greg Reinacker Date: Sat, 2 May 2015 08:43:37 -0600 Subject: [PATCH] allow matching of taxon pages --- lib/spree_static_content.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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