Skip to content

Commit 454bd09

Browse files
committed
wordpress: fix jquery.org search by removing "/" shadow redirect
Let WordPress handle this redirect so that it only applies when "/" is used to target the home page, and e.g. not when it is used for RSS permalinks like "/?p=N" or for search result pages like "?s=X". Similar to our nginx config, the WordPress plugin we use handles both /foo and /foo/. I've removed the ones that used to be pages and that have redirects set up in WordPress. I've kept the redirects at nginx for ones that spanned several subpages under the same prefix.
1 parent 0e34169 commit 454bd09

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

hieradata/common.yaml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -283,78 +283,18 @@ docs_sites:
283283
active_theme: jquery.org
284284
enable_static_index: true
285285
redirects:
286-
- match:
287-
path: /
288-
mode: exact
289-
target:
290-
url: https://openjsf.org
291-
mode: exact
292-
- match:
293-
path: /about
294-
mode: prefix
295-
target:
296-
url: https://openjsf.org/about/
297-
mode: exact
298-
- match:
299-
path: /bylaws
300-
mode: prefix
301-
target:
302-
url: https://bylaws.openjsf.org/
303-
mode: exact
304-
- match:
305-
path: /conduct
306-
mode: prefix
307-
target:
308-
url: https://code-of-conduct.openjsf.org/
309-
mode: exact
310-
- match:
311-
path: /donate
312-
mode: prefix
313-
target:
314-
url: https://openjsf.org/about/project-funding-opportunities/
315-
mode: exact
316-
- match:
317-
path: /feed
318-
mode: prefix
319-
target:
320-
url: https://meetings.jquery.org/feed/
321-
mode: exact
322-
- match:
323-
path: /join
324-
mode: prefix
325-
target:
326-
url: https://openjsf.org/about/join/
327-
mode: exact
328286
- match:
329287
path: /meeting
330288
mode: prefix
331289
target:
332290
url: https://meetings.jquery.org
333291
mode: exact
334-
- match:
335-
path: /members
336-
mode: prefix
337-
target:
338-
url: https://openjsf.org/about/members/
339-
mode: exact
340292
- match:
341293
path: /projects
342294
mode: prefix
343295
target:
344296
url: https://openjsf.org/projects/
345297
mode: exact
346-
- match:
347-
path: /sponsors
348-
mode: prefix
349-
target:
350-
url: https://openjsf.org/about/members
351-
mode: exact
352-
- match:
353-
path: /trademark-policy
354-
mode: prefix
355-
target:
356-
url: https://trademark-policy.openjsf.org/
357-
mode: exact
358298
- match:
359299
path: /updates
360300
mode: prefix

0 commit comments

Comments
 (0)