Problem/Motivation
The translated paths are not cleaned
Steps to reproduce
Create multilangauge website and then edit a translation of a node, the node translation path is cache is not invalidated on cloudfront
Proposed resolution
Fix by checking if the entity is a translation or original and get the relative alias
Remaining tasks
implement the code
User interface changes
not needed
API changes
not needed
Data model changes
not needed
Issue fork cloudfront_cache_path_invalidate-3462369
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
Comment #2
bigbabertComment #3
joncjordan commentedThe second arg of getAliasByPath is langocde. I think we could update this line to account for the language of the entity being saved:
changes to:
Comment #4
joncjordan commentedHmm I take that back... it doesn't seem to be prepending the URL with the language code. Maybe we should just use this method instead:
Comment #6
bigbabertHi @joncjordan,
as soon i will have time and chance to deploy the change i will test, do you performed a test making changes only on translation and not original language node and verified that the cleaned path on CF is only the one with the correct language prefix?
Best regards
Alberto
Comment #7
bigbabertComment #9
prashant mishra commented