Skip to content

Commit

Permalink
relative urls
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 19, 2024
1 parent bb1b5b6 commit 4772c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/[...slug]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default async ({ params }) => {
{await filteredArticles2.map((article) => (
<span>
{" "}
<Link href={`../..${article.path}`}>.</Link>
<Link href={`${article.path}`}>.</Link>
</span>
))}
</div>
Expand All @@ -187,7 +187,7 @@ export { metadata };
function ArticleCard({ article }) {
return (
<div className="card">
<Link href={`../..${article.path}`}>
<Link href={`${article.path}`}>
<img
src={
article.social_image ||
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function ArticlesPage() {
function ArticleCard({ article }) {
return (
<div className="card">
<Link href={`./.${article.path}`}>
<Link href={`${article.path}`}>
<img src={article.social_image || "https://samples-files.com/samples/Images/jpg/1920-1080-sample.jpg"} alt="Image" />
<div className="card-title">{article.title}</div>
<div className="line"></div>
Expand Down

0 comments on commit 4772c64

Please sign in to comment.