@samsundar23 In the example you shared the request url is https://dev.ms.net/homepahe.html, you don't have sub or sub-sub levels.Do undefined check not null check and see once.Example:if(urlWithoutExt.toString().split("/")[4] != undefined){
tempsubsubsection = urlWithoutExt.toString().split("/")...