Hi everyone, I modified the original index.html file by changing the logo, colors and some links.
I renamed the new html file index2.html.
If I open the html file from the browser it works perfectly.
Once imported into the Router with a branding.npk package, the page loads but errors appear in the entries:
#container {
width: 70%;
margin: 10% auto;
}
By opening the new WebFig loaded on the Mikrotik from the browser and analyzing the html code of the same, it is identified that the proportions indicated in % are removed. Maybe because
is there a precise syntax to correctly insert the % symbol without it being removed??
This is the index2.html code that works from the browser:
This is the new webfig uploaded to the Router it is detected as a variable:
hadn’t noticed that myself, but have the exact same CSS code in my index2.html files.
perhaps the % needs to be escaped? I don’t have the right equipment hooked up at the moment to do any testing on it, but I’m curious to see what you find. Might need to update our login page in the future in the next update we release..
So theoretically it should it ignore just a %… But if that’s it’s escape char… a little more explainable. Still seem like a bug…
Perhaps moving the CSS to seperate file in branding kit file would fix? That cause browser to load CSS directly via to seperate CSS, and thus avoid using tag directly which is parsed by RouterOS.