Broken Links on Sub-Directory Installations
Bug #240041 reported by
Phillip Barnes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ideatorrent |
New
|
Undecided
|
Unassigned |
Bug Description
The "QA-Website top navigation bar" and possibly other links within the module do not load the correct URL's in sub-directory installations. All links in the module include the domain name without the sub-directory.
For example, the sub-directory installation's login links should be:
http://
...when Brainstorm is installed in "sub-directory". Currently, the broken link is:
http://
To post a comment you must log in.
I don't know bzr enough to create a patch, but here are the edits I made to "qawebsite. block.php" . I basically added the global $base_url to every link:
---------------- block_navigatio n() { QAWebsiteSite: :getInstance( );
function qawebsite_
global $user, $base_url;
$site=
..... "qawebsite_ topbar\ ">
$content. ="<td>< b>Welcome, " . $user->name . "!</b></td>"; "Administrator" ))
$content. ="<td>< a href=\"" . $base_url . "/admin\ ">Admin< /a></td> ";
$content. ="<td>< a href=\"" . $base_url . "/qawebsite/ profile\ ">My profile</a></td> get("user_ register" ,1))
$content. ="<td>< a href=\"" . $base_url . "/user\">Log in</a></td>";
<table class=\
<tr>";
if ($user->uid != 0) {
if (user_access(
<td><a href=\"" . $base_url . "/logout\">Log out</a></td>";
}
elseif (variable_
------- ------- ------- -