File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,10 @@ redirects:
138138
139139` ` ` yaml
140140redirects:
141+ # In this first scenario, the default redirection target remains the same page, with anchors being preserved.
142+ # Omitting the ` ` anchors` ` tag or explicitly setting it as empty are both supported.
141143 'testing/redirects/8th-page.md':
142144 to: 'testing/redirects/8th-page.md'
143- anchors: {}
144145 many:
145146 - to: 'testing/redirects/second-page.md'
146147 anchors:
@@ -149,6 +150,7 @@ redirects:
149150 anchors:
150151 'item-b':
151152
153+ # In this scenario, the default redirection target is a different page, and anchors are dropped.
152154 'testing/redirects/deleted-page.md':
153155 to: 'testing/redirects/5th-page.md'
154156 anchors: '!'
You can’t perform that action at this time.
0 commit comments