Add "Back to Lessons" / "Home" link on every lesson page
Description
Currently, individual lesson pages don't have a visible "Back to Lessons" or "Home" button.
This makes it hard for users to navigate back to the main lesson list or homepage after finishing a lesson.
Steps to Reproduce
- Open any lesson page (for example: https://hacking-tutorial.vercel.app/ethical-hacking/lesson-01)
- Scroll through the page.
- Notice there's no clear way to return to the homepage or lesson index.
Expected Behavior
Every lesson page should have an easy way to navigate back to:
- The main lessons list, OR
- The homepage.
Suggested Fix
- Add a small link or button in the header or footer, such as:
- "← Back to Lessons"
- "🏠 Home"
- The link can use the existing site navigation style or be a simple
<a href="/">Home</a>tag. - Ensure it’s visible and consistent across all lesson pages.
Example Implementation
If using React/Next.js:
import Link from "next/link";
export default function BackButton() {
return (
<div style={{ marginTop: "1rem" }}>
<Link href="/" className="text-blue-500 underline hover:text-blue-700">
← Back to Lessons
</Link>
</div>
);
}
@nidhiii128 issue is assigned to you.
Be in communication with @HarzhMehta for updates on this.
i would like to work on it @nidhiii128
i would love to contribute in this @nidhiii128
Hi guys, just hold on for 2 hrs. Im adding dynamic routing for all .md files so I'll be using those routes to add "prev" and "next" for pages. Based on that there will be a lot of work required for react UI , specially the code snippets.
You all can help out a lot in that. Its a lot of work, sufficient for everbody :)
@HarzhMehta have you done this work?
I have made the PR this afternoon. Waiting for it to be accepted
sure
I'd like to pick this one , will raise a pr when the implementation is done . thanks