This one is really making me scratch my head. I thought I was done, and now when I click on a post title on the main page, it takes me to the base url template, not the page template. I’m really at a loss as to what I changed. Switching themes back to Antimatter makes it work correctly, but I can’t find the mistake. Any ideas?
What does the HTML look like for the link in the Bootstrap Twig template? Will probably be something like:
<h3><a href="{{ page.url }}">{{ page.title }}</a></h3>
In my option, i save base_url variable into theme, example:
$this->grav['twig']->twig_vars['base_url'] = $this->grav['page']->find($this->grav['config']->get('system.home.alias'))->url(true);
If you want save into theme directly you can use this:
{% set base_url = page.find(config.system.home.alias).url(true) %}
---