diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 486406e12..e1b340752 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -170,9 +170,9 @@ sub new { my $webguiPath = Cwd::realpath(shift); my $filename = shift; my $noCache = shift; - my $fullPath = $webguiPath.'/etc/'.$filename; - if (exists $config{$filename}) { - return $config{$filename}; + my $fullPath = Cwd::realpath($webguiPath.'/etc/'.$filename); + if (exists $config{$fullPath}) { + return $config{$fullPath}; } else { my $self = Config::JSON->new($fullPath); register($self, $class);