Thanks for the link to the documentation.
I have managed to create the API (but i didnt use the joomla component / plugin method)
I am now having another issue.
Using code mirror I put my code to call the API into a joomla module.
Despite using Absolute URLs in my code to generate the links and the img src the joomla site that is calling my API always prepend these links with the site url.
My API call is fetching the event id from the table and i wish to link to it.
The link renders as :
https://www.mywebsite.com/https://esci. ... event&id=1
Despite using an Absolute URL
If i put my code into the root directory of the server as a bog standard html page the links work perfectly.
Why does joomla ignore my absolute url reference and prepend it with the site url?
I have managed to create the API (but i didnt use the joomla component / plugin method)
I am now having another issue.
Using code mirror I put my code to call the API into a joomla module.
Despite using Absolute URLs in my code to generate the links and the img src the joomla site that is calling my API always prepend these links with the site url.
My API call is fetching the event id from the table and i wish to link to it.
Code:
const id = event.id;const eventLink = `https://esci.ie/index.php?option=com_eventbooking&view=event&id=${id}`;<a href="${eventLink}" target="_blank" rel="noopener noreferrer">View Event</a>
https://www.mywebsite.com/https://esci. ... event&id=1
Despite using an Absolute URL
If i put my code into the root directory of the server as a bog standard html page the links work perfectly.
Why does joomla ignore my absolute url reference and prepend it with the site url?
Statistics: Posted by ontarget — Wed Dec 04, 2024 1:27 pm