diff --git a/modules/comment/comment.item.php b/modules/comment/comment.item.php
index 943393f48..8c3b599c0 100644
--- a/modules/comment/comment.item.php
+++ b/modules/comment/comment.item.php
@@ -255,7 +255,9 @@
}
function getPermanentUrl() {
- return getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
+ $url = getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
+ if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
+ return $url;
}
diff --git a/modules/document/document.item.php b/modules/document/document.item.php
index d0aa3c783..4bb4c01b9 100644
--- a/modules/document/document.item.php
+++ b/modules/document/document.item.php
@@ -376,7 +376,9 @@
}
function getPermanentUrl() {
- return getUrl('','document_srl',$this->document_srl);
+ $url = getUrl('','document_srl',$this->get('document_srl'));
+ if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
+ return $url;
}
function getTrackbackUrl() {
diff --git a/modules/homepage/homepage.view.php b/modules/homepage/homepage.view.php
index e4beb2ba9..23eabb343 100644
--- a/modules/homepage/homepage.view.php
+++ b/modules/homepage/homepage.view.php
@@ -69,6 +69,10 @@
foreach($output->data as $key => $val) {
$banner_src = 'files/attach/cafe_banner/'.$val->site_srl.'.jpg';
if(file_exists(_XE_PATH_.$banner_src)) $output->data[$key]->cafe_banner = $banner_src.'?rnd='.filemtime(_XE_PATH_.$banner_src);
+
+ $url = getSiteUrl($val->domain,'');
+ if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
+ $output->data[$key]->url = $url;
}
}
Context::set('total_count', $output->total_count);
diff --git a/modules/homepage/skins/xe_default/index.html b/modules/homepage/skins/xe_default/index.html
index 693cf24d1..1721fd226 100644
--- a/modules/homepage/skins/xe_default/index.html
+++ b/modules/homepage/skins/xe_default/index.html
@@ -34,7 +34,7 @@
{preg_replace('/<([^>]+)>/i','',$val->cafe_description)}
- {getSiteUrl($val->domain)}
+ {$val->url}
diff --git a/modules/trackback/trackback.model.php b/modules/trackback/trackback.model.php
index ce32bf0d6..562122771 100644
--- a/modules/trackback/trackback.model.php
+++ b/modules/trackback/trackback.model.php
@@ -132,7 +132,9 @@
* trackback url에 key값을 추가함.
**/
function getTrackbackUrl($document_srl) {
- return getUrl('','document_srl',$document_srl,'act','trackback','key',$this->getTrackbackKey($document_srl));
+ $url = getUrl('','document_srl',$document_srl,'act','trackback','key',$this->getTrackbackKey($document_srl));
+ if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
+ return $url;
}
/**