Compatibility with contrib Redirect module: disable language redirects for CDN's "farfuture" route
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2924916. --> Reported by: [steven jones](https://www.drupal.org/user/99644) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I'm attempting to use CDN to produce URLs for static assets that will change when those static assets change.<br> My site is also using the Redirect module, with its canonical URL redirection enabled, so that requests for <code>node/123</code> get redirected to <code>content/title</code> etc.<br> I also have languages enabled on the site. So that in fact, if someone requested <code>//fqdn/node/123</code> it'll actually get redirected to: <code>//fqdn/en/content/title</code>.</p> <p>When enabling the CDN module, with farfuture, all of the files served no longer work since they are for paths like:<br> <code>//fqdn/cdn/farfuture/3d8UFbZKlGF89ZdOA-ZpIxKK8s7YZImp7zXZXcBMiDs/1479386946/themes/custom/theme_name/favicon.ico</code><br> which redirect module will intercept and redirect to:<br> <code>//fqdn/en/cdn/farfuture/3d8UFbZKlGF89ZdOA-ZpIxKK8s7YZImp7zXZXcBMiDs/1479386946/themes/custom/theme_name/favicon.ico</code></p> <p>and then the security token is invalid.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>I'm not sure! I feel like either:</p> <ul> <li>the CDN paths needs declaring in such a way that it won't get tweaked for language prefixes etc.</li> <li>the URL that CDN module outputs should run through that system and be altered accordingly</li> <li>that the route should be flagged in such a way that redirect module won't touch it</li> <li>The security token should be valid if the bit that was actually hashed matches, essentially ignoring prefixes.</li> </ul> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #2641118](https://www.drupal.org/node/2641118) > Related issue: [Issue #2877055](https://www.drupal.org/node/2877055)
issue