var templateSidenav = Handlebars.compile( $('#template-sidenav').html() );
//
+ // Default host url used if no sampleUrl is present in config
+ //
+ var baseURL = window.location.origin;
+
+ //
// apiProject defaults
//
if ( ! apiProject.template)
};
}
+ if (apiProject.sampleUrl == false) {
+ fields.article.sampleRequest = [
+ {
+ "url": baseURL + fields.article.url
+ }
+ ];
+ }
+
// add prefix URL for endpoint unless it's already absolute
if (apiProject.url) {
if (fields.article.url.substr(0, 4).toLowerCase() !== 'http') {