Commit e4130cf
committed
Merge branch 'feature/Container-Response' into develop
`Container` topics are meant for internal organization, not external viewing. Currently, accessing one will generally throw a 500 error since there won't be a corresponding view associated with it. That's not the best experience, as it's an _expected_ error. Instead, the `ValidateTopicAttribute` has been updated to throw a 403 Unauthorized error when a `Container` is accessed directly. This is similar to how e.g. `List` (and `List` descendants) are handled today. Unlike `List`, however, children of `Container` can still be viewed.
The complements a recent (but poorly documented) update in which the `SitemapController` was updated to exclude the `Container` from its output—while still including its children (87b6d1b).
As an alternative to throwing a 403 Unauthorized, the `Container` content type may optionally be configured to support a `Url` attribute, thus allowing editors to configure an explicit redirect, if appropriate.1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
119 | 130 | | |
120 | 131 | | |
121 | 132 | | |
| |||
0 commit comments