How use relative url in HMTL component?


#1

Hi, I have a HTML component that load a object:

Alternative Content

If I use the absolute url with host name that object is loaded correctly.

If I use relative link, so the content is available on remote client also:

Alternative Content

the object isn't load.


#2

Hi,

Is it an HTML object? Can you provide more info/example?

Best Regards,
Vladimir


#3

Hi, the url aim to an html page that is showed inside in RADZEN page. This happen only with absolute url.

Excuse me, I see now that in the start message are not visible the examples, I try put they here (change <> with - to avoid html parsing):

ok:

"-object data="http://localhost:8885/swmbot/chatbot1.html" width="100%" height="100%" type="text/html"-
Alternative Content
-/object-"

not ok:

"-object data="http://:8885/swmbot/chatbot1.html" width="100%" height="100%" type="text/html"-
Alternative Content
-/object-"


#4

This is not valid URL. The relative link should be data="swmbot/chatbot1.html" in my opinion.


#5

But, if the page is served from another server with different port on the same machine?