Skip to content

Commit ad6366f

Browse files
committed
remove (for now) redirects
1 parent b6293a8 commit ad6366f

File tree

1 file changed

+0
-269
lines changed

1 file changed

+0
-269
lines changed

docusaurus.config.js

Lines changed: 0 additions & 269 deletions
Original file line numberDiff line numberDiff line change
@@ -190,275 +190,6 @@ const config = {
190190
disableInDev: false,
191191
},
192192
],
193-
[
194-
"@docusaurus/plugin-client-redirects",
195-
{
196-
redirects: [
197-
// reminder: these have no effect in dev mode
198-
// see https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects
199-
// file renamed in https://github.com/unraid/docs/commit/570a7e629bef1577d43e188495cb71916e7de360
200-
{
201-
to: "/legacy/FAQ/shrink-array/",
202-
from: "/legacy/FAQ/Shrink_array/",
203-
},
204-
// move Getting Started pages
205-
{
206-
to: "/unraid-os/getting-started/",
207-
from: "/unraid-os/manual/getting-started/",
208-
},
209-
{
210-
to: "/unraid-os/getting-started/",
211-
from: "/category/getting-started/",
212-
},
213-
{
214-
to: "/unraid-os/getting-started/manual-install-method/",
215-
from: "/unraid-os/manual/getting-started/manual-install-method/",
216-
},
217-
// redirect from 6.12.7 to 6.12.8
218-
{
219-
to: "/unraid-os/release-notes/6.12.8/",
220-
from: "/unraid-os/release-notes/6.12.7/",
221-
},
222-
// redirect from unraid-account faq page to the top level account page
223-
{ to: "/account/", from: "/unraid-os/faq/unraid-account/" },
224-
// Overview redirect
225-
{
226-
to: "/unraid-os/overview/what-is-unraid/",
227-
from: "/unraid-os/manual/what-is-unraid/",
228-
},
229-
// Troubleshooting section redirect
230-
// skip, lost-root-password takes precedence
231-
/*
232-
{
233-
to: "/unraid-os/troubleshooting/",
234-
from: "/unraid-os/manual/troubleshooting/",
235-
},
236-
*/
237-
// reset password redirect
238-
{
239-
to: "/unraid-os/manual/users/reset-password/",
240-
from: "/unraid-os/manual/troubleshooting/",
241-
// actually from: /unraid-os/manual/troubleshooting#lost-root-password
242-
},
243-
// VM reorg
244-
{
245-
to: "/unraid-os/manual/vm/vm-management/",
246-
from: "/unraid-os/manual/vm-management/",
247-
},
248-
// Connect reorg
249-
{ to: "/connect/", from: "/category/unraid-connect/" },
250-
{ to: "/connect/", from: "/connect/about/" },
251-
// go links used by the OS
252-
{ to: "/category/manual/", from: "/go/manual" },
253-
{
254-
to: "/unraid-os/manual/users/reset-password/",
255-
from: "/go/lost-root-password",
256-
},
257-
{
258-
to: "/unraid-os/manual/changing-the-flash-device/",
259-
from: "/go/changing-the-flash-device",
260-
},
261-
{
262-
to: "/unraid-os/manual/security/vpn/#configuring-vpn-tunneled-access-for-system",
263-
from: "/go/configuring-vpn-tunneled-access-for-system",
264-
},
265-
{
266-
to: "/unraid-os/manual/vm/vm-management/#determining-hvmiommu-hardware-support",
267-
from: "/go/determining-hvmiommu-hardware-support",
268-
},
269-
{
270-
to: "/unraid-os/manual/vm/vm-management/#system-preparation",
271-
from: "/go/vm-system-preparation",
272-
},
273-
// go links used for Forum Word Expansions
274-
{
275-
to: "/unraid-os/manual/storage-management/#checking-a-file-system",
276-
from: "/go/check-filesystem",
277-
},
278-
{
279-
to: "/unraid-os/troubleshooting/diagnostics-information/",
280-
from: "/go/diagnostics",
281-
},
282-
{
283-
to: "/unraid-os/manual/shares/disk-shares/",
284-
from: "/go/disk-shares",
285-
},
286-
{
287-
to: "/unraid-os/manual/storage-management#parity-swap",
288-
from: "/go/parity-swap",
289-
},
290-
{ to: "/legacy/FAQ/shrink-array/", from: "/go/shrink-array" },
291-
{
292-
to: "/unraid-os/manual/shares/user-shares/#split-level",
293-
from: "/go/split-level",
294-
},
295-
{
296-
to: "/unraid-os/troubleshooting/diagnostics-information/#persistent-logs-syslog-server",
297-
from: "/go/syslog-server",
298-
},
299-
{
300-
to: "/unraid-os/manual/shares/user-shares/",
301-
from: "/go/user-shares",
302-
},
303-
// go links used for unraid.net website
304-
{ to: "/account/", from: "/go/account" },
305-
{
306-
to: "/unraid-os/manual/storage-management/#adding-disks",
307-
from: "/go/adding-array-disks",
308-
},
309-
{
310-
to: "/unraid-os/manual/storage-management/#why-use-a-pool",
311-
from: "/go/adding-pools",
312-
},
313-
{
314-
to: "/unraid-os/getting-started/advanced-bios-config/",
315-
from: "/go/advanced-bios-config",
316-
},
317-
{ to: "/unraid-os/manual/applications/", from: "/go/applications" },
318-
{ to: "/connect/", from: "/go/connect" },
319-
{ to: "/connect/", from: "/go/connect-about" },
320-
{ to: "/connect/help/", from: "/go/connect-help" },
321-
{
322-
to: "/connect/help#server-deep-linking",
323-
from: "/go/connect-deep-linking",
324-
},
325-
{ to: "/connect/remote-access/", from: "/go/connect-remote-access" },
326-
{
327-
to: "/connect/remote-access/#dynamic-remote-access",
328-
from: "/go/connect-dynamic-remote-access",
329-
},
330-
{ to: "/connect/flash-backup/", from: "/go/connect-flash-backup" },
331-
{
332-
to: "/connect/help/#license-management",
333-
from: "/go/connect-license-management",
334-
},
335-
{
336-
to: "/connect/help/#manage-your-server-from-within-the-connect-ui",
337-
from: "/go/connect-manage-server-from-connect",
338-
},
339-
{
340-
to: "/connect/help/#unraid-connect-dashboard",
341-
from: "/go/connect-dashboard",
342-
},
343-
{
344-
to: "/connect/help/#customizable-dashboard-server-banner-image-and-themes",
345-
from: "/go/connect-customizable-dashboard",
346-
},
347-
{
348-
to: "/connect/help/#language-localization",
349-
from: "/go/connect-language-localization",
350-
},
351-
{
352-
to: "/unraid-os/manual/docker-management/",
353-
from: "/go/docker-management",
354-
},
355-
{ to: "/unraid-os/download_list/", from: "/go/download-list" },
356-
{
357-
to: "/legacy/Articles/expanding-windows-vm-vdisk-partitions/",
358-
from: "/go/expanding-windows-vm-vdisk-partitions",
359-
},
360-
{ to: "/category/faq/", from: "/go/faq" },
361-
{ to: "/unraid-os/faq/licensing-faq/", from: "/go/faq-licensing" },
362-
{
363-
to: "/unraid-os/faq/licensing-faq/#how-to-redeem-a-license-activation-code",
364-
from: "/go/faq-licensing-redeem-activation-code",
365-
},
366-
{
367-
to: "/unraid-os/faq/licensing-faq/#how-do-i-upgrade-my-unraid-license",
368-
from: "/go/faq-licensing-upgrade",
369-
},
370-
{
371-
to: "/unraid-os/faq/licensing-faq/#what-happens-with-pre-releases",
372-
from: "/go/faq-licensing-pre-release",
373-
},
374-
{ to: "/unraid-os/getting-started/", from: "/go/getting-started" },
375-
{
376-
to: "/unraid-os/getting-started/manual-install-method/",
377-
from: "/go/manual-install-method",
378-
},
379-
{
380-
to: "/unraid-os/manual/security/outgoing-proxy-manager/",
381-
from: "/go/outgoing-proxy-manager",
382-
},
383-
{
384-
to: "/unraid-os/manual/multi-language/",
385-
from: "/go/multi-language",
386-
},
387-
{ to: "/legacy/FAQ/Parity/", from: "/go/parity" },
388-
{
389-
to: "/unraid-os/getting-started/quick-install-guide/",
390-
from: "/go/quick-install-guide",
391-
},
392-
{
393-
to: "/unraid-os/getting-started/quick-install-guide/#assigning-devices-to-the-array-and-pools",
394-
from: "/go/quick-install-guide-assigning-devices",
395-
},
396-
{
397-
to: "/unraid-os/getting-started/quick-install-guide/#setting-up-the-unraid-os",
398-
from: "/go/quick-install-guide-setting-up",
399-
},
400-
{
401-
to: "/unraid-os/manual/changing-the-flash-device/#recommendations-on-buying-usb-drives",
402-
from: "/go/recommendations-on-buying-usb-drives",
403-
},
404-
{ to: "/category/release-notes/", from: "/go/release-notes" },
405-
{ to: "/unraid-os/manual/shares/", from: "/go/shares" },
406-
{
407-
to: "/unraid-os/manual/storage-management/",
408-
from: "/go/storage-management",
409-
},
410-
{ to: "/unraid-os/troubleshooting/", from: "/go/troubleshooting" },
411-
{
412-
to: "/unraid-os/manual/upgrade-instructions/",
413-
from: "/go/upgrade-instructions",
414-
},
415-
{
416-
to: "/unraid-os/manual/vm/vm-management/",
417-
from: "/go/vm-management",
418-
},
419-
{
420-
to: "/unraid-os/manual/vm/vm-support/",
421-
from: "/go/vm-support",
422-
},
423-
{
424-
to: "/unraid-os/manual/security/vpn/",
425-
from: "/go/vpn",
426-
},
427-
{
428-
to: "/unraid-os/manual/security/secure-webgui-ssl/",
429-
from: "/go/webgui-ssl",
430-
},
431-
{
432-
to: "/unraid-os/manual/security/tailscale/",
433-
from: "/go/tailscale",
434-
},
435-
{
436-
to: "/unraid-os/manual/security/tailscale/#adding-tailscale-to-docker-containers",
437-
from: "/go/tailscale-docker",
438-
},
439-
{
440-
to: "/unraid-os/manual/storage-management/#blacklisted-usb-flash-device",
441-
from: "/go/blacklisted-usb-flash-device",
442-
},
443-
],
444-
createRedirects(existingPath) {
445-
// Create automatic redirects for release notes paths
446-
if (existingPath.includes("/unraid-os/release-notes/")) {
447-
// Extract the version number from the path
448-
const versionMatch = existingPath.match(
449-
/\/unraid-os\/release-notes\/(.+?)\//
450-
);
451-
if (versionMatch && versionMatch[1]) {
452-
const version = versionMatch[1];
453-
// Create a go link redirect for this release note
454-
return `/go/release-notes/${version}`;
455-
}
456-
}
457-
458-
return undefined; // Return undefined for paths that don't need automatic redirects
459-
},
460-
},
461-
],
462193
],
463194
};
464195

0 commit comments

Comments
 (0)