?
avatar JoomFX
JoomFX
19 Jun 2015

There are two issues with the Login Menu item. These are reproducible in both 3.3.6 and 3.4.1 (clean installation).

First Issue

  1. Create a Login Menu Item
  2. Set the "Access Level" to "Guest"
  3. Set the "Login Redirect" to "index.php"
  4. Login on the front end and you will get the following error:

You are not authorised to view this resource.

Second Issue

  1. Create a Login Menu Item
  2. Set the "Access Level" to "Guest"
  3. Set the "Login Redirect" to some other page, for example "index.php/component/tags/tag/2-joomla" (this is a valid URL with the default installation with English Sample Content).
  4. Login on the front end and you will be forwarded to a wrong URL - the "login" word will always be added at the end of the URL, for example:

index.php/component/tags/tag/2-joomla/login

This was also reported in the forum.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar JoomFX JoomFX - open - 19 Jun 2015
avatar brianteeman
brianteeman - comment - 19 Jun 2015

Please can you retest with the current staging release which you can
download from here
https://github.com/joomla/joomla-cms/archive/staging.zip

As there were some issues with the redirect on login which should have been
resolved now

On 19 June 2015 at 12:19, Ivo Valkov notifications@github.com wrote:

There are two issues with the Login Menu item. These are reproducible in
both 3.3.6 and 3.4.1 (clean installation).
First Issue

  1. Create a Login Menu Item
  2. Set the "Access Level" to "Guest"
  3. Set the "Login Redirect" to "index.php"
  4. Login on the front end and you will get the following error:

You are not authorised to view this resource.
Second Issue

  1. Create a Login Menu Item
  2. Set the "Access Level" to "Guest"
  3. Set the "Login Redirect" to some other page, for example "index.php/component/tags/tag/2-joomla" (this is a valid URL with the default installation with English Sample Content).
  4. Login on the front end and you will be forwarded to a wrong URL - the "login" word will always be added at the end of the URL, for example:

index.php/component/tags/tag/2-joomla/login

This was also reported in the forum
http://forum.joomla.org/viewtopic.php?f=706&t=889228.


Reply to this email directly or view it on GitHub
#7204.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar JoomFX
JoomFX - comment - 19 Jun 2015

Thanks for the reply Brian.

I just tested it with the staging release and none of these two issues is fixed.

The redirect issue you are talking about is probably #6542 .
But it is for the Login Module, not for the Menu Item.

avatar infograf768
infograf768 - comment - 19 Jun 2015

Confirmed here.
What happens in First case is that login through menu item
=> if redirect is set to "index.php"
redirects to the logout view => here: index.php?option=com_users&view=login&Itemid=233 )
=> if redirect is not set, it redirects to the profile view.

As user is no more a "guest" the logout view having the same access as login, it is not displayed and one gets the error.

avatar zero-24 zero-24 - change - 19 Jun 2015
Status New Confirmed
avatar zero-24 zero-24 - change - 19 Jun 2015
Category Front End Modules
avatar zero-24 zero-24 - change - 19 Jun 2015
Labels Added: ?
avatar mahagr
mahagr - comment - 11 Aug 2015

Similar one (specified in the link to Gantry issue above) is the fact that copying URLs from frontend doesn't work:

index.php/using-joomla/

will point to:

index.php/using-joomla/login

Both of the "side effects" are caused from the same "feature" as the links go through JRoute and index.php? makes Joomla to think that they are non-SEF urls.

avatar conconnl
conconnl - comment - 15 Apr 2016

I just checked this issue in the staging. (Latest build)

When I create the "index.php?option=com_users&view=login" menu item and I configure a redirect URL after login using "/index.php/article" or any other SEF or None-SEF existing URL, then I receive the "You are not authorised to view this resource." when I use full url "http://domain.com/index.php/article" then everything works as it should.


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

avatar conconnl
conconnl - comment - 26 Jun 2016

@brianteeman can you look at this issue?

The redirecting issue as described by @JoomFX is still happening in Joomla (Tested in 3.6 Beta 2)
Next to this: When you have used the "Internal URL" option and you want to switch to the "Menu item" option, you will receive an error that only one of the values may filled, but you would aspect that the value is cleaned when you switch to the other option when you save the menu.


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

avatar infograf768
infograf768 - comment - 28 Jun 2016

Not easy to clean the value. Patch welcome...

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Aug 2016

First Issue

Still happens on latest staging, but you can now choose a menu item in the selector.

Second Issue

Unable to reproduce on latest staging.

avatar brianteeman
brianteeman - comment - 22 Aug 2016

I am closing this as the first issue is easily resolved using the selector


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

avatar brianteeman brianteeman - change - 22 Aug 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-08-22 19:45:01
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Aug 2016

Add a Comment

Login with GitHub to post a comment