Closed (duplicate)
Project:
Redirect
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2016 at 20:51 UTC
Updated:
26 Aug 2017 at 11:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
caspervoogt commentedI also tried this and it did not redirect to the pretty URL alias of the node. Not really sure what "Normalize aliases" is meant to do. The description says "Will check if for the given path an alias exists or if the used alias is in correct case and will redirect to the appropriate alias form." but this does not really explain it. Should I assume this means that:
1. if the node has an alias, it will redirect from node/123 to /my-pretty-url?
2. If I access the node via some alternative case like /My-Pretty-URL, it would redirect to /my-pretty-url?
#1 is not working for me.
I don't know about #2 - have not tested for that.
Comment #3
drupalninja99 commentedI am having the same issues as #1 and I am pretty sure that is what this feature does in D7
Comment #4
drupalninja99 commentedI believe the logic is in redirectNormalizeAliases so something must be not working within that method.
Comment #5
drupalninja99 commentedI noticed here that this is not triggering the correct url object even though the alias looks like it's correct.
Comment #6
drupalninja99 commentedAdded a patch which fixes the issue for me. Using 'Url::fromUserInput' is more reliable for me than getUrlIfValid.
Comment #7
Mike_info commentedI am also experiencing the issue of getting redirected too often en not being able to visit the alias of the node when logged in. This happens only when I check the Normalize aliasescheckbox
Comment #8
berdirMultilingual sites? Likely a duplicate of #2704213: "Redirect from non-canonical URLs to the canonical URLs" not working with language code in url in that case.
Comment #9
berdirClosing, this should be fixed now.