HelloI'm making a share function component and am stuck with unexpected problem.AEM gets rid of URL used for Twitter, which is https://twitter.com/intent/tweet?text=Top%20Two&url=http%3A%2F%2Fwww.mysite.com%2Fcontent%2Ftest-site%2Ftop-two.htmlI have tried the Web Console Configuration to disable lin...
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?