Merge lp:~whosdaz/ubuntu-qa-website/fix1194770 into lp:ubuntu-qa-website

Proposed by Matthew Allen
Status: Merged
Merged at revision: 422
Proposed branch: lp:~whosdaz/ubuntu-qa-website/fix1194770
Merge into: lp:ubuntu-qa-website
Diff against target: 18 lines (+4/-2)
1 file modified
modules/qawebsite/qawebsite.module (+4/-2)
To merge this branch: bzr merge lp:~whosdaz/ubuntu-qa-website/fix1194770
Reviewer Review Type Date Requested Status
Ubuntu QA Website Developers Pending
Review via email: mp+282702@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/qawebsite/qawebsite.module'
2--- modules/qawebsite/qawebsite.module 2016-01-14 17:51:38 +0000
3+++ modules/qawebsite/qawebsite.module 2016-01-15 08:47:33 +0000
4@@ -19,10 +19,12 @@
5
6
7 //Work around to fix lp:1194770
8-
9 $path = drupal_get_path_alias($_GET['q']);
10
11-if($path == 'user' || $path == 'user/login' || $path == 'user/register' || $path == 'user/password'){
12+// Get the leading section of the path eg. /user /qatracker etc.
13+$pathmain = explode("/", $path)[0];
14+
15+if($pathmain == "user"){
16 $redirect = array(
17 '#tag' => 'meta', // The #tag is the html tag - <link />
18 '#attributes' => array( // Set up an array of attributes inside the tag

Subscribers

People subscribed via source and target branches