all: Ignore language when checking if URL is prefixed by WebSite's url
Otherwise https://example.com/foo would match https://example.com/ but not the language-selector https://example.com/en/
-
Owner
I think we have failures like https://erp5js.nexedi.net/#/test_result_module/20240923-13084D824/315 because
getOriginalDocument
is not defined on ERP5Site, so when logged_in is called on the context of portal object, this fails.With 5820860d test would pass, but I'm not sure if it's the best fix.
-
Owner
Oh, nice catch, thanks.
IMHO the best fix is to get ERP5Site to inherit from Base (and possibly more, so it becomes a more normal document - like being able to call
activate
on it). I expect bootstrap to be possible given howportal_types
is a portal-typed document itself, for example. But in the meantime I think your proposed commit should be the best. Could you push it to master please ? -
Owner
Thanks, yes also I have the same feeling that ERP5Site should inherit from Base. Every time we changed class hierarchy it was more complex than what I expected, so for now pushing this fix is enough but it's something we should try one day.