It's curious that an XMLHttpRequest is required to load a CSS file?!

Grepping the 2.2 release, I see it's loaded relatively:

$ grep -r style-myit.css *
myitapp/index.html:     <link rel="stylesheet"
href="../tenant-custom-res/style-myit.css" />
myitapp-full/index.html:        <link rel="stylesheet"
href="../tenant-custom-res/style-myit.css" />

No issue there. However in 2.6, which I've just downloaded:

                /* Customer branding */
                function loadCustomerBrandingStyles() {
                        var href =
                        '../tenant-custom-res/style-myit.css';

                        var stylesPromise = $q.when($.ajax({
                                url: href,
                                cache: false,
                                dataType: 'text',
                                success: function () {
                                        // Load new tenant related
                                        styles
                                        $('<link rel="stylesheet"
                                        type="text/css" href="' + href +
                                        '" />')
                                                .appendTo("head");
                                }
                        })).catch(function () {
                                return $q.when(true);
                        });

                        return stylesPromise;
                }

(Using both Angular and JQuery - sigh)

But that can't be the problem as you're reporting
tenant-custom-res/X/style-myit.css where X looks like an Entry ID.

Do you have something similar if you grep your JS files?


John

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to