Embedding WebCore app in a CMS´s page

I read this post How to run a web app in a web page and tried to embedd my app in our CMS. The solution wirh IFrame and a callback for setting the height works, however I´d like to know, if there is another solution too.

First, rtl.run() is not enough, because the CSS and lib´s must be embedded, too:

 <script src="bootstrap.bundle.min.js" type="text/javascript"></script>
 <link crossorigin="anonymous" href="bootstrap.min.css" rel="stylesheet"/>
 <script src="WebRezept.js" type="text/javascript"></script>
 <script type="text/javascript">rtl.run();</script>

But this still does not work, because this "TMS Web Project" is the path to the app, but the CMS generates "https://www.nutritional-software.at/content/rezeptberechnung_im_web" as URL for the page and so the scripts arn´t found.

If I start the app via it´s link TMS Web Project, the App runs ok.
If I add the path to the , the frmMain from the app is´nt found any more.

Any ideas?
tx in advance!

I suggest to start looking in the browser console for exact error messages that might give you an idea what exactly is going wrong.

If I start the app via absolute path:

<script src="https://www.nutritional-software.at/WebRezept/WebRezept.js" type="text/javascript"></script> <script type="text/javascript">rtl.run();</script>

In turn this is not found (404)

GET https://www.nutritional-software.at/content/nuts-software/rezeptberechnung_im_web/frmMain.html

BTW: This path is generated by my CMS.

If I start the app via relative path:
<script src="WebRezept/WebRezept.js" type="text/javascript">
this fails with 404
GET https://www.nutritional-software.at/content/nuts-software/rezeptberechnung_im_web/WebRezept/WebRezept.js

If I start the app direct via URL


everything is ok.

Any idea?