404

<!-- Error rendering component -->
<!-- TwigException: Unable to parse 'redirect '/thinking/' ~ post.slug 301' -->
<!-- Error: TwigException: Unable to parse 'redirect '/thinking/' ~ post.slug 301'
    at /opt/build/repo/node_modules/@frctl/twig/src/adapter.js:156:24
    at new Promise (<anonymous>)
    at TwigAdapter.render (/opt/build/repo/node_modules/@frctl/twig/src/adapter.js:134:16)
    at ComponentSource._renderVariant (/opt/build/repo/node_modules/@frctl/fractal/src/api/components/source.js:212:30)
    at _renderVariant.next (<anonymous>)
    at onFulfilled (/opt/build/repo/node_modules/co/index.js:65:19) -->
{% extends '_layouts/default' %}

{% if craft.app.request.getSegment(1) == 'posts' %}
  {% set slug = craft.app.request.getSegment(2) %}
  {% set post =
    craft.entries({
      legacyId: slug
    }).one()
  %}
  {% if post %}
    {% redirect '/thinking/' ~ post.slug 301 %}
    {% exit %}
  {% endif %}

  {% set post =
    craft.entries({
      legacySlug: slug
    }).one()
  %}
  {% if post %}
    {% redirect '/thinking/' ~ post.slug 301 %}
    {% exit %}
  {% endif %}
{% endif %}

{% block header %}
  {% include '@breadcrumb' with {
    breadcrumb: {
      link: '/',
      title: 'Home'
    }
  } %}

  {{
    include(
      '@page-header',
      {
        title: {
          text: '404'
        },
        content: {
          subtitle: 'Page not found',
          standfirst: {
            text: '<p>We couldn’t find the page you were looking for. We’ll check and see if we can fix the problem.</p><p>In the meantime, you can:
              <ul>
                <li><a href="/services">Find our more about the services we offer</a></li>
                <li><a href="/thinking">Read our latest thinking</a></li>
                <li><a href="/contact">Get in touch</a></li>
              </ul>
            </p>'
          }
        }
      }
    )
  }}
{% endblock %}

{% block main %}

{% endblock %}
/* No context defined. */

No notes defined.