Problem/Motivation
It would be really helpful if there was a setting to redirect anonymous users to the front page in case they are trying to open that one for authenticated users.
Steps to reproduce
Proposed resolution
- Add checkbox in config form
- Use
hook_entity_accessto prevent access to protected node
| Comment | File | Size | Author |
|---|
Issue fork authenticated_frontpage-3563178
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
yannickooComment #3
medha kumariWorking on it.
Comment #4
medha kumariPlease review this patch.
Comment #5
yannickooThat was quick, thank you! Could you create an issue fork instead of a patch? 🤗
Comment #7
medha kumariHi, I create MR for this. Please check and review. Thanks!
Comment #8
jesus_md commentedHi, this patch as a first step is really helpful. However I found that this could fails if the site manage lang codes in this line
I modified the initial patch and created a solution that works with lang codes.
Comment #11
yannickooGreat that works as expected 💪 Setting to RTBC!
Comment #12
yannickooComment #13
rawdreeg commentedThanks jesus_md.
I merged PR #8