Commit 3e3efe3
committed
Improve locale matching in FrontendPageController
The code was updated to more effectively match the request locale with the allowed locales in the FrontendPageController. In cases where there's no match, the first allowed locale is employed. This change enhances the readability and clarity in handling locale-related variables. Additionally, unused 'ContentSecurityPolicyHelper' was removed and default status updated to 'status_published'.1 parent 68a3722 commit 3e3efe3
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
526 | 542 | | |
527 | 543 | | |
528 | 544 | | |
| |||
0 commit comments