Commit 93608b2b authored by jan.koester's avatar jan.koester
Browse files

test

parent 51826a34
Loading
Loading
Loading
Loading
+3 −3
Changes for data/template/default/editor.html: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>${I18N_WEBEDITOR}</title>
    <!-- 1. KEEP: Define PREFIX once in the head -->
    <script>const PREFIX = '${PREFIX}'.replace(/\/+$/, '');</script>
    <script>const PREFIX = '/blog';</script>
    <script>
    const I18N = {
        MOVE_UP: '${I18N_MOVE_UP}',
@@ -717,7 +717,7 @@

        // --- API Utility Functions ---

        const API_URL = window.location.origin + PREFIX + '/api'; // Absolute URL
        const API_URL = `${window.location.origin}${PREFIX}/api`; // Absolute URL

        /**
         * Function to handle API requests with exponential backoff.
@@ -1980,7 +1980,7 @@
            const mobile = isMobile ? 'mobile=true&' : '';
            const authIdParam = getAuthId() ? `authid=${getAuthId()}&` : '';

            renderingIframe.src = PREFIX + '/render?' + mobile + authIdParam + 'rootel=WebEditor';
            renderingIframe.src = `${PREFIX}/render?${mobile}${authIdParam}rootel=WebEditor`;

            const activeClass = 'bg-blue-600';
            const inactiveClass = 'bg-gray-600';
+2 −0
Changes for src/conf.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ blogi::Config::Config(const std::string &path) : confplus::Config(path){
    }
    _HttpUrl=getValue(getKey("/BLOGI/HTTP/URL"),0);
    _HttpPrefix=getValue(getKey("/BLOGI/HTTP/PREFIX"),0);
    if(_HttpPrefix == "/")
        _HttpPrefix = "";
    _Template=getValue(getKey("/BLOGI/TEMPLATE"),0);
    _StartPage=getValue(getKey("/BLOGI/STARTPAGE"),0);