3scale-labs / 3scale-discover-APIs

Add API discovery mechanism to your 3scale API portal
10 stars 10 forks source link

apidetails not finding my service_id #3

Open mhockelberg opened 5 years ago

mhockelberg commented 5 years ago

After configuring, unable to get the apidetails page to display properly. It doesn't seem to be able to find my service_id.

New_Issue_·_3scale_3scale-discover-APIs_and_Mozilla_Firefox
mhockelberg commented 5 years ago

The wrong URL value is being set which is causing the script to err out.

FIX:

Change needed to the extractServiceID function in the apidetail.html file: Modify this line: var url = window.location.href To this: var url = window.location.href == 'about:srcdoc' ? window.parent.location : window.location