Currently, I am attempting to incorporate the disqus directive into my project. The documentation for this directive can be found here.
However, I have encountered some issues due to the particular setup of my application. There is a line in the script where the embed .js file is called using the code snippet below:
dsq.src = '//' + scope.config.disqus_shortname + '.disqus.com/embed.js';
Upon checking the console, I noticed the following error being returned:
GET file://mywebsitename.disqus.com/embed.js net::ERR_FILE_NOT_FOUND
The error occurs because the URL is returning as file:// instead of http://.
Although I was able to resolve this issue by directly changing the URL in the code, additional external files that the script calls are also returning as file://, resulting in the same error.
I suspect that the problem lies within the location module of angular/ionic, but I am unsure how to make modifications since I am relatively new to these technologies.
Any assistance on this matter would be greatly appreciated. Thank you!