← Back to team overview

mahara-contributors team mailing list archive

[Bug 1774334] Re: Redirecting to wrong adminurl post login

 

Hi James,

The reason for this is your site is subdirectory of the website's root
directory.

This is indeed a bug, and it is being caused by:
PHP SCRIPT_NAME = /{subdirectory}/admin
Mahara wwwroot = http://{domain.com}/{subdirectory}/

And so there is an overlap of /{subdirectory} common to both parts,
where we only need it once

I've created a patch for it https://reviews.mahara.org/#/c/8943/

Please try the changes in that patch to see if fixes your problem.

Cheers

Robert

** Changed in: mahara
    Milestone: None => 18.10.0

** Also affects: mahara/17.04
   Importance: Undecided
       Status: New

** Also affects: mahara/18.04
   Importance: Undecided
       Status: New

** Also affects: mahara/18.10
   Importance: Undecided
       Status: New

** Also affects: mahara/17.10
   Importance: Undecided
       Status: New

** Changed in: mahara/18.04
    Milestone: None => 18.04.2

** Changed in: mahara/17.10
    Milestone: None => 17.10.6

** Changed in: mahara/17.04
    Milestone: None => 17.04.9

** Changed in: mahara/17.04
   Importance: Undecided => High

** Changed in: mahara/17.10
   Importance: Undecided => High

** Changed in: mahara/18.04
   Importance: Undecided => High

** Changed in: mahara/18.10
   Importance: Undecided => Critical

** Changed in: mahara/18.10
   Importance: Critical => High

** Changed in: mahara/18.10
       Status: New => In Progress

** Changed in: mahara/18.04
       Status: New => Confirmed

** Changed in: mahara/17.10
       Status: New => Confirmed

** Changed in: mahara/17.04
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1774334

Title:
  Redirecting to wrong adminurl post login

Status in Mahara:
  In Progress
Status in Mahara 17.04 series:
  Confirmed
Status in Mahara 17.10 series:
  Confirmed
Status in Mahara 18.04 series:
  Confirmed
Status in Mahara 18.10 series:
  In Progress

Bug description:
  Hi,

  I have installed Mahara 18041 manually on one of my test servers.
  However I am getting stuck post admin login.

  After installing Mahara 18041 when I try to login into
  http://{domain.com}/{subdirectory}/admin it is redirecting to
  http://{domain.com}/{subdirectory}/ {subdirectory} /admin which is
  giving "404 Not found" error as it is detecting  {subdirectory}
  twice.

  Can anyone help me out why this is happening ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1774334/+subscriptions


References