prevent rails from adding current path url before external js src

115 Views Asked by At

I have page where i load js from my payment gateway(citrus) like below

<script id=”context” type=”text/javascript” src=”https://sboxcontext.citruspay.com/static/kiwi/app-js/icp.js” />

The url for the current page is http://localhost:3000/listings/10/summary?booking_id=46

But am getting a 404 error in the console for the below link

http://localhost:3000/rooms/10/%E2%80%9Dhttps://sboxcontext.citruspay.com/static/kiwi/app-js/icp.js%E2%80%9D

I think the addition of the current url path is the issue here.. Could someone tell me whats wrong here?

0

There are 0 best solutions below