I see that wix-location exposes the baseUrl and several other metadata items related to the current page, but not the title! I want to use code to put the page title in the Header. It’s super annoying to have to manually type that into each page because invariably, it gets put on every page, and so then I have to go and remove it and try again to add it only on that one page. Because it’s being added to the Header it’s automatically added to each page, and the on-off switch to turn that off is disabled until after it’s added. Extremely annoying.
You can get the names of all the pages using getSiteStructure() and cross reference it with the page url you get using wixLocation.path .
Yes, thanks… I did notice is was in the SiteStructure, but it’s seems like it would be such a popular data item that Wix would do what you suggested behind the scenes and make it available in wixLocation.