mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11746
[Bug 1150831] [NEW] Trailing slash missing in directory URL
Public bug reported:
In https://mahara.org/interaction/forum/topic.php?id=5269 , a user
reported that clicking the "Done" button after editing a portfolio page,
caused the user to be sent to a non-https version of their site,
interrupting their login session.
After a bit of troubleshooting, it turned out that the problem was
caused in part, by the fact that in raw/templates/view/blocks.tpl, the
form containing the "Done" button submits to the url "{$WWWROOT}/view",
rather than "{$WWWROOT}/view/". (note the missing trailing slash)
With most web servers, if you try to access a directory, but leave the
trailing slash off the end, you will be redirected to the same URL with
a trailing slash. (See
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryslash for
documentation of this in Apache, for instance). Somehow, this was
causing problems for this user.
Since this can cause problems for some users, and since the correct URL
for a directory has a trailing slash on the end anyway, we should fix
this so that our directory URLs have a trailing slash. At the least,
it'll save on a little bit of web traffic, by avoiding a redirect.
This problem was noticed in /view/blocks.tpl, but it's possible it could
occur in other templates as well.
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1150831
Title:
Trailing slash missing in directory URL
Status in Mahara ePortfolio:
New
Bug description:
In https://mahara.org/interaction/forum/topic.php?id=5269 , a user
reported that clicking the "Done" button after editing a portfolio
page, caused the user to be sent to a non-https version of their site,
interrupting their login session.
After a bit of troubleshooting, it turned out that the problem was
caused in part, by the fact that in raw/templates/view/blocks.tpl, the
form containing the "Done" button submits to the url
"{$WWWROOT}/view", rather than "{$WWWROOT}/view/". (note the missing
trailing slash)
With most web servers, if you try to access a directory, but leave the
trailing slash off the end, you will be redirected to the same URL
with a trailing slash. (See
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryslash for
documentation of this in Apache, for instance). Somehow, this was
causing problems for this user.
Since this can cause problems for some users, and since the correct
URL for a directory has a trailing slash on the end anyway, we should
fix this so that our directory URLs have a trailing slash. At the
least, it'll save on a little bit of web traffic, by avoiding a
redirect.
This problem was noticed in /view/blocks.tpl, but it's possible it
could occur in other templates as well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1150831/+subscriptions
Follow ups
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-10-24
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-09-30
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-07-30
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Kristina Hoeppner, 2013-07-29
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: shanen, 2013-07-29
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-25
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-24
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-24
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] A change has been merged
From: Mahara Bot, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] A change has been merged
From: Mahara Bot, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] A change has been merged
From: Mahara Bot, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-07-01
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Robert Lyon, 2013-06-24
-
[Bug 1150831] A change has been merged
From: Mahara Bot, 2013-06-24
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Tony Box, 2013-05-29
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-05-02
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Tony Box, 2013-05-02
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-05-02
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-05-02
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Kristina Hoeppner, 2013-04-28
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-04-26
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Aaron Wells, 2013-04-26
-
[Bug 1150831] Re: Trailing slash missing in directory URL
From: Tony Box, 2013-04-24
-
[Bug 1150831] [NEW] Trailing slash missing in directory URL
From: Aaron Wells, 2013-03-07
References