Nicolas Lempereur
8557bcfa30
[FIX] website: language prefixed URL on website bis
...
Reintroduces 5324284f5 that was reverted because in the case of an URL
like /payment_stripe/static/src/js/stripe.js directly inside a QWeb
template, we would possibly get:
/fr_FR/payment_stripe/static/src/js/stripe.js
Which is not accepted by werkzeug SharedDataMiddleware we use to serve
static data in /{module_name}/static/ directories.
Added test without changeset failed with:
- test_process_att_no_request_lang: <AssertionError>
line: self._test_att('/en_US/', {'href': '/'})
wrong result: {'href': '/en_US/'}
- test_process_att_with_request_lang: <AssertionError>
line: self._test_att('/', {'href': '/fr_FR/'})
wrong result: {'href': '/'}
- test_process_att_matching_cdn_and_lang: <AssertionError>
line: self._test_att('/en_US/a', {'href': 'http://test.cdn/a '})
wrong result: {'href': 'http://test.cdn/en_US/a '}
- test_process_att_no_route: <AssertionError>
line: self._test_att('/my-page', {'href': '/fr_FR/my-page'})
wrong result: {'href': '/my-page'}
- test_process_att_url_crap: <IndexError: list index out of range>
line: request.httprequest.app._log_call[-1],
opw-1922051
closes #32095
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com >
2019-04-02 14:45:24 +00:00
..
2019-04-03 16:12:06 +00:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-17 03:13:11 +01:00
2019-03-24 03:11:51 +01:00
2019-03-17 03:13:11 +01:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-02-01 02:44:47 +01:00
2019-03-10 03:14:20 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-02 13:58:03 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-03-10 03:14:20 +01:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-03-17 03:13:11 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-03-03 03:15:43 +01:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-02 14:45:24 +00:00
2019-03-28 16:52:53 +01:00
2019-03-15 09:24:28 +00:00
2019-03-10 03:14:20 +01:00
2019-03-31 03:16:57 +02:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-01-04 12:37:01 +01:00
2019-01-24 12:24:04 +01:00
2019-03-18 10:53:01 +01:00
2019-01-23 16:40:41 +01:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-03-08 15:17:12 +00:00
2019-02-28 12:39:03 +00:00
2019-03-25 15:08:55 +00:00
2019-03-14 13:14:07 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-14 18:42:19 +01:00
2019-03-29 14:01:19 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-03-26 23:19:34 +00:00
2019-01-02 10:49:56 +01:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-03-25 12:38:05 +00:00
2019-02-28 12:39:03 +00:00
2019-02-19 07:59:25 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-10 03:14:20 +01:00
2019-03-10 03:14:20 +01:00
2019-03-03 03:15:43 +01:00
2019-04-01 02:44:26 +02:00
2019-03-21 07:28:19 +00:00
2019-04-01 02:44:26 +02:00
2019-03-17 03:13:11 +01:00
2019-04-01 02:44:26 +02:00
2019-03-17 03:13:11 +01:00
2019-03-17 03:13:11 +01:00
2019-03-17 03:13:11 +01:00
2019-04-01 02:44:26 +02:00
2019-03-17 03:13:11 +01:00
2019-03-24 03:11:51 +01:00
2019-04-03 15:22:12 +00:00
2019-04-01 02:44:26 +02:00
2019-02-28 12:39:03 +00:00
2019-02-10 03:13:22 +01:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-02-28 12:39:03 +00:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-03 07:14:20 +00:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-17 03:13:11 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-03 03:15:43 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-04 09:19:23 +00:00
2019-04-01 11:00:29 +00:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-04-03 13:41:57 +00:00
2019-02-28 12:39:03 +00:00
2019-03-03 03:15:43 +01:00
2019-02-28 12:39:03 +00:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-02-28 12:39:03 +00:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-02 14:45:24 +00:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-03-24 03:11:51 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-24 03:11:51 +01:00
2019-03-17 03:13:11 +01:00
2019-04-02 07:43:06 +00:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-10 03:14:20 +01:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00
2019-04-01 02:44:26 +02:00
2019-04-01 02:44:26 +02:00
2019-03-31 03:16:57 +02:00