Thank you so much for your quick response. I didn’t know the typeof function - thank you. It is logging it as an object.
I have changed my code to the code you suggest above
let linkToDynamicPage = [("/edit-product-detail/"+title).toString()]
but I am still receiving the same error message. Any thoughts would be greatly appreciated!