Project

General

Profile

Actions

Bug #2282

closed

One can not omit the configuration of a base URL in rudder properties

Added by Matthieu CERDA almost 13 years ago. Updated about 12 years ago.

Status:
Released
Priority:
3
Category:
Web - UI & UX
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

In a lot of cases, the user might want to comment out the base URL in the rudder-web.properties file to have a "generic" root that is not locked on a defined FQDN (the application using only relative, instead of absolute, paths).

When I tried to comment this entry during tests, the application did not break completely but parts of if failed to load.

I can see odd paths in the head section of the page:

    <base href="${base.url}/" />

    <link media="screen" type="text/css" rel="stylesheet" href="/rudder/style/rudder.css" />

    <link type="text/css" rel="stylesheet" href="/rudder/images/themes/ui-lightness/jquery.ui.all.css" />
    <link type="text/css" rel="stylesheet" href="/rudder/style/jquery-rudder-bridge.css" />

    <link type="image/x-icon" rel="icon" href="/rudder/images/rudder-favicon.ico" />
    <script src="javascript/jquery/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery-ui-1.8.13.custom.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.mouse.js" type="text/javascript"></script>

    <script src="/rudder/javascript/jquery/ui/jquery.ui.sortable.js" type="text/javascript"></script>
    <script src="javascript/jquery/jquery.bgiframe-2.1.1.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.button.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.draggable.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.position.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.dialog.js" type="text/javascript"></script>

    <script src="/rudder/javascript/jquery/ui/jquery.ui.resizable.js" type="text/javascript"></script>
    <script src="/rudder/javascript/rudder/rudder.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.effects.core.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.effects.blind.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.effects.explode.js" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/ui/jquery.ui.tabs.js" type="text/javascript"></script>

    <script src="/rudder/javascript/jquery/ui/jquery.ui.progressbar.js" type="text/javascript"></script>
    <script src="/rudder/javascript/datatables/js/jquery.dataTables.js" language="javascript" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/jquery-tooltip/jquery.tooltip.js" language="javascript" type="text/javascript"></script>
    <script src="/rudder/javascript/jquery/tooltips.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript">
      // <![CDATA[
      $(document).ready(function() {
        correctButtons();
        $("a", "form").click(function() { return false; });
        createTooltip();
      });
      // ]]>
    </script>
    <script type="text/javascript" src="javascript/jquery/jquery.corner.js"></script>

    <script type="text/javascript">
      // <![CDATA[
      $(document).ready(function() {roundTabs();});
      // ]]>
    </script>
        <script id="simplemodal" src="javascript/jquery/jquery.simplemodal-1.4.1.js" type="text/javascript"></script>

I imagine that the base href is not intended to be left as is, and some includes use javascript/ instead of /rudder/javascript/ (baaaad idea : leads to a 404 not found)


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #2264: When using the webapp through port forwarding, the css are not loadedRejected2012-02-09Actions
Actions

Also available in: Atom PDF