diff options
author | ivan <ivan> | 2007-08-04 02:06:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-08-04 02:06:56 +0000 |
commit | 5c90313c6e998f7bfe63147345fade00cbec1230 (patch) | |
tree | 2521a033e52c81b1a4b6890e5a25869448f1cc63 /rt/etc | |
parent | 59bc1cbda010b965c50ba62d7d6eb0815650eda5 (diff) |
fix URL handling on RT redirects
Diffstat (limited to 'rt/etc')
-rw-r--r-- | rt/etc/RT_SiteConfig.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm index ef110db0e..a5195f219 100644 --- a/rt/etc/RT_SiteConfig.pm +++ b/rt/etc/RT_SiteConfig.pm @@ -25,9 +25,6 @@ $RT::Organization = '%%%RT_DOMAIN%%%'; $RT::Timezone = '%%%RT_TIMEZONE%%%'; -$RT::WebBaseURL = ''; -$RT::WebPath = '/freeside/rt'; - $RT::WebExternalAuth = 1; $RT::WebFallbackToInternal = 1; #no $RT::WebExternalAuto = 1; @@ -35,6 +32,10 @@ $RT::WebExternalAuto = 1; $RT::URI::freeside::IntegrationType = 'Internal'; $RT::URI::freeside::URL = '%%%FREESIDE_URL%%%'; +$RT::URI::freeside::URL =~ m(^(https?://[^/]+)(/.*)$)i; +$RT::WebBaseURL = $1; +$RT::WebPath = "$2/rt"; + Set($DatabaseHost , ''); # These settings are user-editable. |