Homec4science

inveniocfg: new derived config CFG_BASE_URL

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Sep 12 2013, 16:50.

Description

inveniocfg: new derived config CFG_BASE_URL

  • Introduces a new derived config variable called CFG_BASE_URL which is going to contain the relative URL from CFG_SITE_URL.

    For example:

    CFG_SITE_URL CFG_BASE_URL "http://inspirehep.net" "" "http://someuni.gov/~myuser/www/" "/~myuser/www/"

    This is useful when testing single nodes in a multi-host setup with load-balancing, taking advantage of the relative URL lookup of browsers.

    All formats and templates should use CFG_BASE_URL whenever an absolute URL is not required.
  • Adds the <meta base ..> tag to the HTML header.

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Dec 18 2013, 16:21
Parents
R3600:c81ad188af21: urlutils: new function get_relative_url()
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:d21d1dd219f7: inveniocfg: new derived config CFG_BASE_URL (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).Dec 18 2013, 16:21