core
core copied to clipboard
Short URL issue with Bolt and Twig Templates
When using a Short URL – the ‘Detail template’ is being pulled through as the Slug.
For example:
Visavvi.com/avaas should go to Visavvi.com/av-in-the-workplace/Av-as-a-service
However it goes to
Visavvi.com/technology-area/Av-as-a-service
Two templates on Bolt read
Listing template: av_workplace.twig Detail template: technology_area.twig
This issue only happens when using a Short URL
Additionally, this issue also causes the incorrect Nav to become ‘Active’. In the example above, ‘featured technology’ becomes active rather than ‘AV In the Workplace’.
Templates for Featured technology section:
Listing template: our_services.twig Detail template: service_area.twig