Closed (fixed)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Page builder
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Sep 2025 at 14:28 UTC
Updated:
19 Feb 2026 at 11:10 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
penyaskitoThis is critical for Drupal CMS, which has both modules and suffers from this with Canvas HEAD.
Comment #5
penyaskitoI think this is a beta blocker, but might be wrong.
Comment #6
wim leersDid the same thing ~8 years ago in #2924916: Compatibility with contrib Redirect module: disable language redirects for CDN's "farfuture" route for the CDN module I maintain, and did so with this comment:
However that route was for serving file assets which are the same in all contexts, including all translations. Wheras the Canvas module will eventually need to become multilingual. So … won't this get in the way? 🤔
I think the answer is "no, this won't get in the way". Because this MR is setting
_disable_route_normalizerin the inbound path processor instead of the route definition.If @penyaskito can confirm that understanding, then merge away! 😄
P.S.: https://www.hashbangcode.com/article/drupal-10-creating-custom-paths-pat... was quite helpful for this! 😊
Comment #7
penyaskitoCorrect. For the record, e.g.
/es/canvasworks in the same way than before this patch (which is not usable at all, but we aren't making it harder than it already is)Comment #9
penyaskitoMerged! 🎉
Comment #11
mayur-sose commentedVerified the scenarios described below:
Steps followed:
Install the module using the following commands:
ddev composer require drupal/redirectddev drush en redirectAttached the screenshot of the UI for the redirect module page:
/canvas/editor/canvas_page/1./canvasoccurs.User cannot proceed with creating/editing the new Canvas page.
/canvas/editor/canvas_page/2).Page loads with /canvas page.
/canvas/editor/canvas_page/1.Comment #12
wim leers@penyaskito, can you investigate the 3 failures reported by @mayur-sose? 🙏
Comment #13
penyaskitoAfter more testing I cannot reproduce the mentioned problems consistently, but definitely there's some issue here.
E.g. if I go to page 2 it works, if I go to page 3 it doesn't, clearing cache fixes it but eventually I hit it again for some page (but not all of them).
Comment #14
mayur-sose commented@penyaskito Please check screen record :
Comment #15
wim leersCould it be a race condition in client-side routing? 🤔
Comment #16
penyaskitoI fail to see why this could be a client-side issue, as only happens with redirect module enabled, but debugged this and our path processor is always hit (even when the bug happens), so has to be client-side.
I could reproduce this with
canvas_viteenabled, and tried to debugAppRoutes.tsx, but couldn't see anything different in the router object, and I'm not very aware how the react app routing works.Might need help from the FE team to move forward.
Comment #18
penyaskitoJust after posting that decided to read again https://www.hashbangcode.com/article/drupal-10-creating-custom-paths-pat..., and moved the logic to an event subscriber. I cannot reproduce the bug, but this was only manual testing and as we couldn't reproduce consistently, we cannot 100% guarantee we fixed it.
But I did enough back-and-forth testing to think this solves it.
Comment #19
wim leersIMHO can be both faster (use
RoutingEvents::ALTER) and simpler (str_starts_with($route_name, 'canvas.').Comment #20
penyaskitoResolved all review points.
Comment #21
wim leersLGTM! I'm assuming @penyaskito did the necessary manual testing :)
Suggested commit message:
Needs to get recent
1.xcommits merged in before this can be merged.Comment #22
wim leersComment #25
mayur-sose commentedReported issues are now resolved and changes are working as expected.
User can proceed with creating/editing the new Canvas page.
Comment #27
bondd commentedProblem still persist if try to use Canvas on multilingual site.



If Language module is activated and used (default and logical) option with prefixes for choosing interface language.
And you add one or more interface languges.
Canvas editor will not work
Comment #28
penyaskitoSee #3546597: Create Canvas pages in any enabled content language.