?
avatar Twincarb
Twincarb
2 Mar 2016

Steps to reproduce the issue

in the host server I have a rule set-up to remove the trailing / from all webpages, I use Nginx and have the following rule
#remove trailing slash
rewrite ^/(.*)/$ /$1 permanent;

With the server set up as above with the rule enabled at server level
Click on icon-joomla top left when in the administrator view

Expected result

The expected page to be loaded is:
/administrator
/administrator/index.php

Actual result

The page errors out with a reported loop.
due to trying to go between administrator/ and administrator

System information (as much as possible)

Joomla 3.4.8
Apache web server with Nginx in front

Additional comments

The only current way around this is to select System - Control Panel which is set up to load /administrator/index.php

avatar Twincarb Twincarb - open - 2 Mar 2016
avatar brianteeman
brianteeman - comment - 2 Mar 2016

Dont really think thats a bug that Joomla can deal with as it is specific to your non-standard hosting setup
It is normal on a web server that when you hit a folder then the default page as defined by the webserver will load


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9289.

avatar Twincarb
Twincarb - comment - 3 Mar 2016

The reason I raised it as a bug is it's the only admin url in the back end that doesn't display /index.php whereas System - Control panel is written with /index.php and both point to the same location so the behaviour appears inconsistent.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9289.

avatar SharkyKZ
SharkyKZ - comment - 3 Mar 2016

Your rewrite code is probably incorrect. Try this http://stackoverflow.com/a/9576121.

avatar infograf768
infograf768 - comment - 3 Mar 2016

I have to say we are not very consistent on this.
For Isis icon we use
href="' . $this->baseurl . '"
this gives =>/administrator
For the status module we use
href="' . JURI::base() . '"
this gives => /administrator/

We could easily add index.php in both cases.

avatar brianteeman
brianteeman - comment - 3 Mar 2016

OK @infograf768 do you want to do a PR for that - good spot


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9289.

avatar infograf768
infograf768 - comment - 3 Mar 2016

OK, will do

avatar infograf768
infograf768 - comment - 3 Mar 2016

Here it is
#9290

avatar infograf768
infograf768 - comment - 3 Mar 2016

O guess we can close this as there is a patch (still to be tested)

avatar brianteeman brianteeman - close - 3 Mar 2016
avatar brianteeman
brianteeman - comment - 3 Mar 2016

Thanks @infograf768
Closed - please test #9290

avatar brianteeman brianteeman - change - 3 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-03 10:52:29
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Mar 2016
avatar brianteeman brianteeman - change - 8 Mar 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment