TypeError: /app/web/www.squareyards.ae/frontend/public_html/dist/src/views/listing/listingV3.ejs:524
   522|
   523| <% if(isCleanUrl){ %>
>> 524| <%- include('./partials/saleRentSemiFooter') %>
   525| <% } %>
   526|
   527| <% if(globalIsIpadBrowser && isCleanUrl && !(cityId == 0 || cityId == '0')){ %>

/app/web/www.squareyards.ae/frontend/public_html/dist/src/views/listing/partials/saleRentSemiFooter.ejs:591
   589|                                                     <a title="<%= seoLinksResponse.unitTypeUrl.replace('BR','Bedroom') %> <%= fdata['key'] %> for <%= ltype.toLowerCase() %> in <%= locationName %>, <%= cityName %>" href = "<%= baseUrl %><%= ltype.toLowerCase() %>/<%= helper.slugify(seoLinksResponse.unitTypeUrl.toLowerCase()).replace('br','bedroom') %>-<%- helper.slugify(propertyType) %>-for-<%= ltype.toLowerCase() %>-in-<%= helper.slugify(locationName.toLowerCase()) %>-<%= helper.slugify(cityName.toLowerCase()) %>">
   590|                                                 <% }else{ %>
>> 591|                                                     <a title="<%= seoLinksResponse.unitTypeUrl.replace('BR','Bedroom') %> <%= fdata['key'] %> for <%= ltype.toLowerCase() %> in <%= cityName %>" href="<%= baseUrl %><%= ltype.toLowerCase() %>/<%= helper.slugify(seoLinksResponse.unitTypeUrl.toLowerCase()).replace('br','bedroom') %>-<%- helper.slugify(propertyType) %>-for-<%= ltype.toLowerCase() %>-in-<%= helper.slugify(cityName.toLowerCase()) %>">
   592|                                                 <% } %>
   593|                                                 <%= seoLinksResponse.unitTypeUrl.replace('BR','Bedroom') %> <%= fdata['key'] %> for <%= ltype %> in <%- (pagelevel == 'SUBLOCATION') ? locationName : cityName %></a></li>
   594|                                             <% } %>

Cannot read property 'replace' of undefined
   at eval (eval at compile (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:618:12), <anonymous>:1679:55)
   at Array.forEach (<anonymous>)
   at eval (eval at compile (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:618:12), <anonymous>:1636:41)
   at returnedFn (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:653:17)
   at include (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:651:39)
   at eval (eval at compile (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:618:12), <anonymous>:779:17)
   at returnedFn (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:653:17)
   at tryHandleCache (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:251:36)
   at View.exports.renderFile [as engine] (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:482:10)
   at View.render (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express/lib/view.js:135:8)