diff --git a/src/components/ProjectList.jsx b/src/components/ProjectList.jsx
index e0834d5a2..49e464a61 100644
--- a/src/components/ProjectList.jsx
+++ b/src/components/ProjectList.jsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import { useContext } from 'react';
-import { useParams } from 'react-router-dom';
+import { useParams, useLocation } from 'react-router-dom';
import { ThemeContext } from '../context/Theme';
import projects from '../DB/projects.json';
import { FaGithub, FaTwitter, FaLinkedinIn, FaInstagram, FaYoutube } from 'react-icons/fa';
@@ -10,6 +10,8 @@ import { Link } from 'react-router-dom';
const ProjectList = () => {
const { theme } = useContext(ThemeContext);
const { username } = useParams();
+ const data = useLocation();
+ const filter = data.state.filter;
const [userObj, setObject] = useState({});
@@ -40,8 +42,8 @@ const ProjectList = () => {
{/* Beack to projects link */}
{'<'}
-
- Back to Projects
+{`Back to ${filter?filter.charAt(0).toUpperCase()+filter.slice(1):'All'} Projects`}
+
diff --git a/src/pages/ProjectsPage.jsx b/src/pages/ProjectsPage.jsx
index 9514167b1..56c8b6814 100644
--- a/src/pages/ProjectsPage.jsx
+++ b/src/pages/ProjectsPage.jsx
@@ -177,6 +177,7 @@ const ProjectsPage = () => {
listOfProjects={item['Projects']}
socaialMedia={item['Social_media']}
key={i}
+ filter={currentFilter}
/>
))
) : (