Filter articles by tag not working on non-blog pages

Hi,

I’m developing a theme which features a blog on a custom page called ‘Authors’. When I use the following url to filter specific tags it works, filtering out the articles successfully:

https://mysite.myshopify.com/blogs/authors/tagged/art

But when I try to do the same thing on my custom page it no longer works, I get a 404 error with the following code

https://mysite.myshopify.com/pages/authors/tagged/art

Can anyone let me know why this is please?

I tried using this snippet I adapted from the documentation and it successfully generated a list of tags on my custom page but when I click on each tag the subsequent pages are not filtered at all, it shows 100% of the blog posts with no filtering at all:

{% for tag in blogs.authors.all_tags %}
    {{- tag | link_to_tag: tag }}
  {% endfor %}

Any help with this would be great! Thanks