regex - ExpressionEngine 3 - Template Routing issue -
i have template route following:
`/{static_country:regex[(zh|cn|usa)]}/{alpha_dash}`
which matches uri website.com/usa/about-us
fine , points template i've called static
- works fine.
however, when navigate website.com/usa/sdfsdfsdfsd
fake route , isn't route matching entry in channel, still points first entry in static
channel instead of throwing 404
.
i know can limit using regex like:
`/{static_country:regex[(zh|cn|usa)]}/{static_page:regex[(about-us)]}`
but isn't dynamic if client adds own pages we'd have update regex each time.
is there way around @ all?
Comments
Post a Comment