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

Command icon 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

yannickoo created an issue. See original summary.

yannickoo’s picture

Issue summary: View changes
medha kumari’s picture

Assigned: Unassigned » medha kumari

Working on it.

medha kumari’s picture

Assigned: medha kumari » Unassigned
Status: Active » Needs review
StatusFileSize
new4.25 KB

Please review this patch.

yannickoo’s picture

That was quick, thank you! Could you create an issue fork instead of a patch? 🤗

medha kumari’s picture

Hi, I create MR for this. Please check and review. Thanks!

jesus_md’s picture

StatusFileSize
new5.98 KB

Hi, 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.

jesus_md changed the visibility of the branch 3563178-redirect-when-not-allowed to hidden.

yannickoo’s picture

Status: Needs review » Reviewed & tested by the community

Great that works as expected 💪 Setting to RTBC!

yannickoo’s picture

rawdreeg’s picture

Status: Reviewed & tested by the community » Fixed

Thanks jesus_md.

I merged PR #8

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.