Fixed route building
authorAlexander Ebert <ebert@woltlab.com>
Thu, 13 Oct 2011 12:39:41 +0000 (14:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 13 Oct 2011 12:39:41 +0000 (14:39 +0200)
wcfsetup/install/files/lib/system/request/Route.class.php

index f516a29728b25647df03fefc46818db988d17737..0c769c2d05e81cb60001777eab54e3b65b876c04 100644 (file)
@@ -238,13 +238,13 @@ class Route {
                                if (!isset($components[$component])) {
                                        continue;
                                }
-                       
+                               
                                $link .= $components[$component] . '/';
                                unset($components[$component]);
                        }
                }
                
-               $link = 'index.php' . (!empty($link) ? '/' : '');
+               $link = 'index.php' . (!empty($link) ? '/' : '') . $link;
                
                if (!empty($components)) {
                        $link .= '?' . http_build_query($components, '', '&');