Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Allow matching of taxon pages #190

Open
wants to merge 1 commit into
base: 2-4-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/spree_static_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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