There is an issue for this feature for drupal 8, but sadly I'm stuck with drupal 7 for my current project.

When you set a custom login path, the destination parameter is lost.
The fix for this issue seems simple, if the query is empty just (re)set it with the destination.

Comments

r.van.doorn created an issue. See original summary.

r.van.doorn’s picture

So I made a simple patch for this issue.
Not much to it, if the query is empty, set the destination as the query.

gravelpot’s picture

Status: Active » Reviewed & tested by the community

Tested and works as advertised.

bobooon’s picture

Status: Reviewed & tested by the community » Fixed

Patch has been applied. Included in 7.x-2.7 release version.

bobooon’s picture

Status: Fixed » Closed (fixed)