Page address takes me to the home page

Moderators: mandville, PhilD, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
JohnSmithers
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 192
Joined: Mon Feb 11, 2013 9:22 am

Page address takes me to the home page

Post by JohnSmithers » Mon Mar 11, 2019 5:06 pm

This is slightly complicated.

1. I created two articles whose access should be restricted to a group called "VIP".

2. My login form is set to display on these two articles.

3. If a user is not logged in they should see an error message plus my login form; if they are logged as VIP they should see the article and a "logout" button.

4. The stages above (1-3) were working.

5.
(a) However I discovered today that both articles take me to my home page, if I am not logged in.

(b) The address for this redirect home page is http://www.mywebsite/component/users/?view=login

(c) If I login I can view the files. If I log out I see the error message, but if I refresh the screen I am taken to the home page.

6. 5(a)-(c) occur whether I turn the SEO settings on or not.

I have further details below, but any help on this would make this practitioner very happy.

SOME MORE DETAILS

All but two of my articles are public.

My other two pages are given a category of VIP. They have their own menu item. The access level for the menu item is "VIP".

I have a group called "VIP" with parent "registered".

I have a user access called "VIP"; only (a) the VIP group and (b) superusers have access.

User avatar
paulala
Joomla! Explorer
Joomla! Explorer
Posts: 295
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: Page address takes me to the home page

Post by paulala » Sun Apr 28, 2019 8:58 am

I suspect youre being redirected to your menu default. You should see a star in your menu, that's the default menu item.
Try to change the destination of that item or set another item as default and see how things change.
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25779
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Page address takes me to the home page

Post by Per Yngve Berg » Sun Apr 28, 2019 10:22 am

JohnSmithers wrote:
Mon Mar 11, 2019 5:06 pm
2. My login form is set to display on these two articles.
Do you mean the login module?

In the login module, you can set a redirect at logout. Redirect the user to a menu item with public access.

JohnSmithers wrote:
Mon Mar 11, 2019 5:06 pm
(b) The address for this redirect home page is http://www.mywebsite/component/users/?view=login

(c) If I login I can view the files. If I log out I see the error message, but if I refresh the screen I am taken to the home page.
(b) is not the home page. It's the login form in the users component. After login in, you should be taken back to the restricted page.

(c) It will behave different whether the article only or both article and menu item is restricted.


Post Reply

Return to “Access Control List (ACL) in Joomla! 3.x”