This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
katalogi64629
Hi, I am using a blog plugin. I have a category e.g. /phone If I enter it manually, e.g. /phonexxxxx This displays a page with entries from the phone category, and should return a 404 error / page not found. How to fix it? I have set: /m/:slug/:page?
daftspunky
The blog plugin does not support this natively. You may need to add some code in your page
function onStart()
{
$category = Category::where('slug', $this->param('category'))->first();
if (!$category) {
return Redirect::to($this->pageUrl('404'));
}
}
Hope this helps
1-2 of 2