Hello, I am attempting to create an if statement for the pathname, but I am having trouble getting it to work properly.
if (pathname == "/") {
category = 'home';
pagetype = 'homepage';
}
If the pathname matches "/", the script should display category : home
and pagetype : homepage
.
Thank you for your assistance.