Problem/Motivation

Redirecting to /node page after successful logged in by using login form in the homepage.

Proposed resolution

Redirect to the same homepage URL ( example.com/ ) instead of redirecting to /node page ( example.com/node )

User interface changes

n/a

API changes

n/a

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

syammohan_zyxware created an issue. See original summary.

conceglieri’s picture

Assigned: Unassigned » conceglieri

I'm going to work on this

conceglieri’s picture

conceglieri’s picture

Status: Active » Needs review
Issue tags: +DevDaysSeville

I was working on this problem and this is my solution.

Maxfire’s picture

FileSize
874 bytes

It looks very good @conceglieri! , I tested it and it works except for a detail that I'm going to attach with the interdiff.

greetings.

Maxfire’s picture

FileSize
1.12 KB

sorry I forgot attach my patch.
Greetings

syam.mohan’s picture

Hi @conceglieri, your patch will break the redirect functionality. Every login redirecting to profile page. If I try to access the page /admin/content as guest then logged in, I don't want to redirect to profile page. It should be redirected to /admin/content.

Maxfire’s picture

FileSize
903 bytes
734 bytes

Hi @syam.mohan you're completely right!, I just added that case in my patch.

Many thanks!.

idebr’s picture

Version: 9.x-dev » 8.4.x-dev
Maxfire’s picture

Concerning this issue as 8.4.x, I'll update the patch in order to apply this patch into 8.4.x version.
Greetings.

syam.mohan’s picture

@maxfire, any update ?

syam.mohan’s picture

Status: Needs review » Needs work
Maxfire’s picture

Assigned: conceglieri » Maxfire

I'm currently out of my country for work, I am going to assign me this issue and I'll resolve it asap, I'll return starting on May 30.
Regards.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.