How can I prevent YunoHost from modifying my web pages?

My YunoHost server

Hardware: Old computer
YunoHost version: 4.3.6
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

YunoHost seems to add the following content to all pages on the server:

<script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css">

This is especially annoying on my own web pages (using e.g. my_webapp) which I prefer to be unchanged. Sometimes it even breaks web pages and Firefox shows the following error message:

XML Parsing Error: mismatched tag. Expected: </link>

How can I prevent YunoHost from adding the code above?

Thanks for any help.

Edit: New solution:

There is now a yunohost setting that solves the problem: disable the SSOwat panel overlay:

yunohost settings set ssowat.panel_overlay.enabled -v False

hi, edit nginx conf file for your app in
/etc/nginx/conf.d/yourdomain.d/my_webapp.conf

at end of file you will find these line :

# Include SSOWAT user panel.
    include conf.d/yunohost_panel.conf.inc;

just comment/delete it :wink:

3 Likes

Thanks, that worked :slight_smile:

Or you can directly go to the linked file and empty it, so absolutely no screen will be modified no more.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.