LinkHandler now always returns a full URL
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Oct 2012 18:57:39 +0000 (20:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Oct 2012 18:57:39 +0000 (20:57 +0200)
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index 81c5a4076733bef1c572251cc327cab6b65fb5d5..fa3b8ed0f4667c62abfc2922a36d60cbaa62e34e 100644 (file)
@@ -90,6 +90,9 @@ class LinkHandler extends SingletonFactory {
                        
                        $url = $application->getPageURL() . (RequestHandler::getInstance()->isACPRequest() ? 'acp/' : '') . $url;
                }
+               else {
+                       $url = ApplicationHandler::getInstance()->getActiveApplication()->getPageURL() . (RequestHandler::getInstance()->isACPRequest() ? 'acp/' : '') . $url;
+               }
                
                // append previously removed anchor
                $url .= $anchor;