mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #58729
[Bug 1882103] [NEW] Wrong redirect when creating Pages when Mahara is in a subdir
Public bug reported:
Referencing Bug #1843537
(https://bugs.launchpad.net/mahara/+bug/1843537)
In Mahara 20.04 this Bug seems to affect the creation of pages.
When trying to create a new page while Mahara is installed in a
subdirectory (https://dns/mahara), after saving the newly created page
it is created successfully but the user is redirected to an error page
because wwwroot is missing.
The problem seems to be in:
mahara/htdocs/view/editlayout.php in Line 441
Much like in the CSV Upload error it does not include the root directory
The original:
redirect('/view/blocks.php?id=' . $view->get('id'));
Ammended:
redirect(get_config('wwwroot') . 'view/blocks.php?id=' . $view->get('id'));
After changing this, the saving progress redirects to the correct page.
Greetings from Germany,
Philippe
** Affects: mahara
Importance: Undecided
Status: New
--
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/1882103
Title:
Wrong redirect when creating Pages when Mahara is in a subdir
Status in Mahara:
New
Bug description:
Referencing Bug #1843537
(https://bugs.launchpad.net/mahara/+bug/1843537)
In Mahara 20.04 this Bug seems to affect the creation of pages.
When trying to create a new page while Mahara is installed in a
subdirectory (https://dns/mahara), after saving the newly created page
it is created successfully but the user is redirected to an error page
because wwwroot is missing.
The problem seems to be in:
mahara/htdocs/view/editlayout.php in Line 441
Much like in the CSV Upload error it does not include the root
directory
The original:
redirect('/view/blocks.php?id=' . $view->get('id'));
Ammended:
redirect(get_config('wwwroot') . 'view/blocks.php?id=' . $view->get('id'));
After changing this, the saving progress redirects to the correct
page.
Greetings from Germany,
Philippe
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1882103/+subscriptions
Follow ups
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-11-01
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-10-21
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Lisa Seeto, 2020-08-04
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Cecilia Vela Gurovic, 2020-08-04
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-08-04
-
[Bug 1882103] A change has been merged
From: Mahara Bot, 2020-06-28
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-06-28
-
[Bug 1882103] A change has been merged
From: Mahara Bot, 2020-06-28
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-06-28
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-06-25
-
[Bug 1882103] A patch has been submitted for review
From: Mahara Bot, 2020-06-25
-
[Bug 1882103] A patch has been submitted for review
From: Mahara Bot, 2020-06-25
-
[Bug 1882103] A change has been merged
From: Mahara Bot, 2020-06-25
-
[Bug 1882103] A patch has been submitted for review
From: Mahara Bot, 2020-06-25
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Robert Lyon, 2020-06-25
-
[Bug 1882103] A change has been merged
From: Mahara Bot, 2020-06-25
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Octavio Jr, 2020-06-22
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Lisa Seeto, 2020-06-08
-
[Bug 1882103] A patch has been submitted for review
From: Mahara Bot, 2020-06-08
-
[Bug 1882103] Re: Wrong redirect when creating Pages when Mahara is in a subdir
From: Kristina Hoeppner, 2020-06-08