Skip to content

Conversation

@dawiddutoit-mns
Copy link

Problem

The following URLs return 404 errors:

These URLs may be referenced by external documentation, bookmarks, or links from other sites.

Solution

Added page aliases to redirect these URLs to the correct pages:

  • /kafka-sink//sink/
  • /kafka-source//source/

Changes

  • Added kafka-sink.adoc alias to modules/ROOT/pages/sink.adoc
  • Added kafka-source.adoc alias to modules/ROOT/pages/source.adoc

Testing

✅ Built documentation locally with npm run build
✅ Verified redirect pages are generated correctly in build/site/kafka/5.1/
✅ Confirmed redirects use proper canonical links and meta refresh tags

Example Generated Redirect

The generated redirect pages contain:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="canonical" href="https://neo4j.com/docs/kafka/5.1/sink/">
<script>location="../sink/"</script>
<meta http-equiv="refresh" content="0; url=../sink/">
<meta name="robots" content="noindex">
<title>Redirect Notice</title>
<h1>Redirect Notice</h1>
<p>The page you requested has been relocated to <a href="../sink/">https://neo4j.com/docs/kafka/5.1/sink/</a>.</p>

This ensures backward compatibility and prevents 404 errors for users accessing the documentation via old URLs.

Fixes 404 errors when accessing:
- /kafka-sink/ (now redirects to /sink/)
- /kafka-source/ (now redirects to /source/)

These URLs may be referenced by external documentation or bookmarks.
The aliases ensure backward compatibility and prevent 404 errors.

Changes:
- Added kafka-sink.adoc alias to modules/ROOT/pages/sink.adoc
- Added kafka-source.adoc alias to modules/ROOT/pages/source.adoc

Testing:
- Built documentation locally with npm run build
- Verified redirect pages are generated correctly in build/site/kafka/5.1/
- Confirmed redirects use proper canonical links and meta refresh tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants