Dev portal custom js is throwing 404 error due to wrong src path in script tag

Tyk custom js injection using the API is throwing 404 error in developer portal console.

When custom js is injected using the API, it is giving a success response.

curl -X POST www.tyk-test.com:3000/api/portal/js \
-H "Authorization:{DASHBOARD_API_KEY}" \
-d '{"page_js": "console.log(1)"}'

But when developer portal is accessed it is throwing 404 error while loading the custom.js

When examined, I found that it is an issue in the script tag’s src path. The src is /portal/custom/custom.js where as it has to be /custom/custom.js

Hi @ajithcr,

Welcome to the community :tada:

What’s your dashboard version?
This is fixed on Dashboard 4.0.7 // 4.2.2