Skip to content

Commit dbde662

Browse files
committed
🐛 Does not redirect ot login if url start by /bolt...
1 parent 946a489 commit dbde662

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
## 5.2.3
5+
6+
- Fix any URI starting with bolt.backend_url is treated as restricted (macintoshplus, [#3504](https://github.com/bolt/core/issues/3504)
7+
48
## 5.2.2
59

610
Released: 2025-03-10

UPGRADE-5.2.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Upgrade to 5.2.3
2+
3+
In file `config/packages/security.yaml` replace
4+
5+
```yaml
6+
- { path: '^%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }
7+
- { path: '^/(%app_locales%)%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }
8+
```
9+
10+
By
11+
```yaml
12+
- { path: '^%bolt.backend_url%($|/)', roles: IS_AUTHENTICATED_REMEMBERED }
13+
- { path: '^/(%app_locales%)%bolt.backend_url%($|/)', roles: IS_AUTHENTICATED_REMEMBERED }
14+
```

config/packages/security.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ security:
5858
- { path: '^/(%app_locales%)%bolt.backend_url%/api', roles: ADMIN_API_ACCESS } # handled by voter
5959
- { path: '^%bolt.backend_url%/_trans', roles: ADMIN_TRANSLATE_ACCESS } # handled by voter
6060
- { path: '^/(%app_locales%)%bolt.backend_url%/_trans', roles: ADMIN_TRANSLATE_ACCESS } # handled by voter
61-
- { path: '^%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }
62-
- { path: '^/(%app_locales%)%bolt.backend_url%', roles: IS_AUTHENTICATED_REMEMBERED }
61+
- { path: '^%bolt.backend_url%($|/)', roles: IS_AUTHENTICATED_REMEMBERED }
62+
- { path: '^/(%app_locales%)%bolt.backend_url%($|/)', roles: IS_AUTHENTICATED_REMEMBERED }

0 commit comments

Comments
 (0)