@baris @bentael helped me out last night. Amongst other things he confirmed that too, that being on the index page results in an empty data.url. He did get me going using the location.href.
I have to say every one on this forum has been super helpful. I intend to make a donation to Nodebb in the near future.
Is it possible to determine which category does a topic belong to?
https://community.nodebb.org/topic/351/nodebb-wiki is for Announcements
https://community.nodebb.org/topic/1232/centering-imgs is for General Discussion
but it seems no way to find their category via their URLs?!
Me also! This is a great community of knowledgeable people who seem genuinely interested in sharing their knowledge.
Funny that mostly I see that URL butchering on Windows systems. The Linux and OS X ones don't seem to have to obliterate URLs so badly.