Hi guys,
As the title mentions, my pages doesn’t register what I’ve put inside of my javascript when I use the Link Type Page. On refresh it works tho. I’m using the script that @Pakic provided before, which only loads elements if a page is in the route
if (
data.page.Get('route') === '/da/div/thevitaone' ||
data.page.Get('route') === '/da/div/thevitaone/how' ||
data.page.Get('route') === '/da/div/thevitaone/madeindk' ||
data.page.Get('route') === '/da/div/thevitaone/skin' ||
data.page.Get('route') === '/da/div/thevitaone/hair-nails' ||
data.page.Get('route') === '/da/div/thevitaone/skin-hair-nails' ||
data.page.Get('route') === '/da/div/thevitaone/skinvitamins' ||
data.page.Get('route') === '/da/div/thevitaone/hairnailsvitamins' ||
data.page.Get('route') === '/da/div/thevitaone/howto'
) {
Here’s a video example Watch Screen Recording 2024-03-20 at 11.03.30 | Streamable