?
avatar PhilETaylor
PhilETaylor
6 Oct 2020

Steps to reproduce the issue

Generate an error - use #30951 until that one is resolved.

Note that my site is installed at http://127.0.0.1:4444/

Note that this error page's URL is http://127.0.0.1:4444/administrator/index.php?option=com_media&task=file.edit&id=0

Note the error page is this:

Screenshot 2020-10-06 at 23 13 09

Click on Return to dashboard button

Expected result

Returns me to "Home Dashboard" at URL http://127.0.0.1:4444/administrator/

Actual result

I am returned to http://127.0.0.1/administrator/ which doesn't work as my server is on port 4444

html is

<div class="col-md-12">
					<h1>An error has occurred.</h1>
					<blockquote class="blockquote">
						<span class="badge badge-secondary">0</span>
						Invalid controller class: file					</blockquote>
										<p>
						<a href="/administrator" class="btn btn-secondary">
							<span class="fas fa-dashboard" aria-hidden="true"></span>
							Return to Dashboard</a>
					</p>
				</div>

System information (as much as possible)

safari on Mac

Additional comments

avatar PhilETaylor PhilETaylor - open - 6 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Oct 2020
avatar brianteeman
brianteeman - comment - 10 Oct 2020

Please test #31032

avatar alikon alikon - change - 10 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-10 08:29:54
Closed_By alikon
avatar alikon alikon - close - 10 Oct 2020
avatar brianteeman
brianteeman - comment - 10 Oct 2020

I closed the pr as I realised it was working exactly the same with the pr. AND I am unable to replicate the problem at all

404

avatar PhilETaylor
PhilETaylor - comment - 10 Oct 2020

is it because you are in a sub folder too ?

avatar PhilETaylor
PhilETaylor - comment - 10 Oct 2020

broken for me in a subfolder too :(

avatar PhilETaylor
PhilETaylor - comment - 10 Oct 2020

What is the HTML markup of your button when it is rendered please?

avatar PhilETaylor
PhilETaylor - comment - 10 Oct 2020

So Im happy to accept that this is no longer an issue.

ok I think this is a caching issue - a very very strange one.

What happens when you click on the button is a relative navigation to "/administrator" WITH NO TRAILING slash.

In my network inspector I see it CORRECTLY navigates to http://127.0.0.1:4444/subfolder/administrator and then that responds with a 301 Redirect to http://127.0.0.1/subfolder/administrator/ INCORRECTLY.

What is more crazy is that the 301 Redirect is CACHED and being served from "disk cache" even though I have the network inspector open and Disable Cache enabled in the browser.

Why on earth there would be - ON TWO DIFFERENT MACS - a "disk cached" redirect from http://127.0.0.1:4444/subfolder/administrator to http://127.0.0.1/subfolder/administrator/ is beyond me at the moment.

Also why it would also not work on other port numbers too is beyond me.

And also why it does it in Firefox, THAT I ONLY DOWNLOADED TODAY is again beyond me.

So Im happy to accept that this is no longer an issue.

Sorry for wasting your time.

This could also be a nginx issue: https://serverfault.com/questions/351212/nginx-redirects-to-port-8080-when-accessing-url-without-slash in reverse, although this person says its a browser issue and has been reported in chrome d3/d3-request#28

Add a Comment

Login with GitHub to post a comment