Thanks guys for the advice.I'm now developing a sharing functionality, for example, click a button from a news page and it fires the Twitter api with the news page url.Actually, I'm a bit surprised that it requires to modify the console.
HelloIs it possible to get the hostname of the current page? currentPage.getPath() only returns something like '/path/path/page' but I also need to find the hostname, for example, 'https://www.google.com'Is it possible? Or is there a good way of doing it?