core icon indicating copy to clipboard operation
core copied to clipboard

Short URL issue with Bolt and Twig Templates

Open hbwmcgregor opened this issue 2 years ago • 0 comments

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

hbwmcgregor avatar Jan 31 '22 12:01 hbwmcgregor