Closed (fixed)
Project:
Rabbit Hole
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2017 at 13:10 UTC
Updated:
11 Oct 2017 at 00:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
povilas uogintas commentedHey,
After experimentation I dropped using Rabbit hole approach to redirect nodes to another node and used my own script... I am attaching sample if anybody finds it useful....
I created custom event subscriber... Added this to my services.yml
Then created this EventSubscriber it checks if current node has field field_redirect_to and that this field is not empty and then redirects to that node in correct language .... I got initial idea from https://drupal.stackexchange.com/questions/202351/how-can-i-redirect-nod... ....
Comment #3
0sarah0al commentedI am having the same problem, but with the user entity and page redirect.
Comment #4
dylan donkersgoed commentedI'm attaching a patch that should fix this.
Target paths are run through Drupal's URL generation if they are not absolute, which will cause the language to be prepended when applicable.
Comment #6
dylan donkersgoed commented