Hey folks,
I recently changed the structure of my blog slightly, now posts are children of /blog/
rather than children of root.
I’m trying to create a route in my config that redirects /tag:<anything>
to /blog/tag:`.
Here’s what I’ve come up with, but it doesn’t seem to be working:
// Redirect tags
[
'pattern' => 'tag:(:any)',
'action' => function ($tag) {
return go('blog/tag:' . $tag);
}
],
What am I doing wrong?
Thanks,
Kev