console issues are fixed

This commit is contained in:
akash 2025-12-17 21:50:49 +05:30
parent 0d3169f49d
commit fb7c710f5e
19 changed files with 53 additions and 42 deletions

View File

@ -15,6 +15,10 @@
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L] RewriteRule (.*)$ /$1/ [R=301,L]
# Handle Next.js App Router RSC payload files
# (Removed RSC rewrites as we are disabling prefetch instead)
# 1. Custom 404 handling # 1. Custom 404 handling
ErrorDocument 404 /404.html ErrorDocument 404 /404.html

View File

@ -21,11 +21,17 @@
<mimeMap fileExtension=".js" mimeType="text/javascript" /> <mimeMap fileExtension=".js" mimeType="text/javascript" />
<remove fileExtension=".css" /> <remove fileExtension=".css" />
<mimeMap fileExtension=".css" mimeType="text/css" /> <mimeMap fileExtension=".css" mimeType="text/css" />
<remove fileExtension=".txt" />
<mimeMap fileExtension=".txt" mimeType="text/plain" />
</staticContent> </staticContent>
<httpErrors errorMode="Custom"> <httpErrors errorMode="Custom">
<remove statusCode="404" /> <remove statusCode="404" />
<error statusCode="404" path="/404.html" responseMode="ExecuteURL" /> <error statusCode="404" path="/404.html" responseMode="ExecuteURL" />
</httpErrors> </httpErrors>
<modules runAllManagedModulesForAllRequests="true"/> <modules runAllManagedModulesForAllRequests="true"/>
<rewrite>
<rules>
</rules>
</rewrite>
</system.webServer> </system.webServer>
</configuration> </configuration>

View File

@ -96,7 +96,7 @@ export default function AboutContent() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>About Us</h1> <h1 className={styles.heroTitle}>About Us</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / About <Link href="/" prefetch={false}>Home</Link> / About
</p> </p>
</div> </div>
</motion.section> </motion.section>
@ -126,7 +126,7 @@ export default function AboutContent() {
<p className={styles.text}> <p className={styles.text}>
At Antalya, dining is more than a meal - it is a celebration of culture, flavour, and shared moments. We welcome you to discover the essence of Turkish hospitality and the rich culinary legacy we proudly nurture. At Antalya, dining is more than a meal - it is a celebration of culture, flavour, and shared moments. We welcome you to discover the essence of Turkish hospitality and the rich culinary legacy we proudly nurture.
</p> </p>
<Link href="/antalya-restaurant-menu" className={styles.menuButton}> <Link href="/antalya-restaurant-menu" className={styles.menuButton} prefetch={false}>
VIEW OUR MENU VIEW OUR MENU
</Link> </Link>
</motion.div> </motion.div>
@ -363,7 +363,7 @@ export default function AboutContent() {
viewport={{ once: true }} viewport={{ once: true }}
transition={{ duration: 0.6, delay: 0.6 }} transition={{ duration: 0.6, delay: 0.6 }}
> >
<Link href={ctaData.buttonLink} className={styles.ctaButton}> <Link href={ctaData.buttonLink} className={styles.ctaButton} prefetch={false}>
{ctaData.buttonText} {ctaData.buttonText}
</Link> </Link>
</motion.div> </motion.div>

View File

@ -103,7 +103,7 @@ export default function GalleryContent() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>Our Gallery</h1> <h1 className={styles.heroTitle}>Our Gallery</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / Gallery <Link href="/" prefetch={false}>Home</Link> / Gallery
</p> </p>
</div> </div>
</motion.section> </motion.section>

View File

@ -83,7 +83,7 @@ export default function MenuPage() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>Our Menu</h1> <h1 className={styles.heroTitle}>Our Menu</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / Menu <Link href="/" prefetch={false}>Home</Link> / Menu
</p> </p>
</div> </div>
</motion.section> </motion.section>

View File

@ -59,7 +59,7 @@ export default function BlogContent() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>Our Blog</h1> <h1 className={styles.heroTitle}>Our Blog</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / Blog <Link href="/" prefetch={false}>Home</Link> / Blog
</p> </p>
</div> </div>
</motion.section> </motion.section>
@ -103,11 +103,11 @@ export default function BlogContent() {
</div> </div>
<div className={styles.cardContent}> <div className={styles.cardContent}>
<h3 className={styles.blogTitle}> <h3 className={styles.blogTitle}>
<Link href={`/antalya-turkish-food-blog/${blog.slug}`}>{blog.title}</Link> <Link href={`/antalya-turkish-food-blog/${blog.slug}`} prefetch={false}>{blog.title}</Link>
</h3> </h3>
<p className={styles.date}>{blog.date}</p> <p className={styles.date}>{blog.date}</p>
<p className={styles.excerpt}>{blog.excerpt}</p> <p className={styles.excerpt}>{blog.excerpt}</p>
<Link href={`/antalya-turkish-food-blog/${blog.slug}`} className={styles.button}> <Link href={`/antalya-turkish-food-blog/${blog.slug}`} className={styles.button} prefetch={false}>
Read More Read More
</Link> </Link>
</div> </div>

View File

@ -55,7 +55,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
<div className={styles.errorContainer}> <div className={styles.errorContainer}>
<h1 className={styles.errorTitle}>Blog Post Not Found</h1> <h1 className={styles.errorTitle}>Blog Post Not Found</h1>
<Link href="/antalya-turkish-food-blog" className={styles.backLink}>Back to Blog</Link> <Link href="/antalya-turkish-food-blog" className={styles.backLink} prefetch={false}>Back to Blog</Link>
</div> </div>
<Footer /> <Footer />
</main> </main>
@ -71,7 +71,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>{blog.title}</h1> <h1 className={styles.heroTitle}>{blog.title}</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / <Link href="/antalya-turkish-food-blog">Blog</Link> / {blog.title} <Link href="/" prefetch={false}>Home</Link> / <Link href="/antalya-turkish-food-blog" prefetch={false}>Blog</Link> / {blog.title}
</p> </p>
</div> </div>
</section> </section>
@ -119,7 +119,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
{/* Navigation */} {/* Navigation */}
<div className={styles.navigation}> <div className={styles.navigation}>
<Link href="/antalya-turkish-food-blog" className={styles.backButton}> Back to All Blogs</Link> <Link href="/antalya-turkish-food-blog" className={styles.backButton} prefetch={false}> Back to All Blogs</Link>
</div> </div>
</div> </div>
</article> </article>

View File

@ -147,7 +147,7 @@ export default function ContactContent() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>Contact Us</h1> <h1 className={styles.heroTitle}>Contact Us</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / Contact <Link href="/" prefetch={false}>Home</Link> / Contact
</p> </p>
</div> </div>
</motion.section> </motion.section>

View File

@ -119,7 +119,7 @@ export default function CateringContent() {
<div className={styles.heroContent}> <div className={styles.heroContent}>
<h1 className={styles.heroTitle}>Catering</h1> <h1 className={styles.heroTitle}>Catering</h1>
<p className={styles.breadcrumb}> <p className={styles.breadcrumb}>
<Link href="/">Home</Link> / Catering <Link href="/" prefetch={false}>Home</Link> / Catering
</p> </p>
</div> </div>
</section> </section>
@ -451,7 +451,7 @@ export default function CateringContent() {
<p className={styles.servingDescription}> <p className={styles.servingDescription}>
Whether hosting a corporate lunch, wedding, or private dinner, Antalya ensures your guests enjoy a memorable culinary experience. Whether hosting a corporate lunch, wedding, or private dinner, Antalya ensures your guests enjoy a memorable culinary experience.
</p> </p>
<Link href="/antalya-restaurant-menu" className={styles.lastButton}> <Link href="/antalya-restaurant-menu" className={styles.lastButton} prefetch={false}>
View Our Menu View Our Menu
</Link> </Link>
</motion.div> </motion.div>

View File

@ -35,7 +35,7 @@ export default function About() {
From warm service to signature classics, Antalya welcomes you to experience dining that feels memorable, comforting, and distinctly Turkish. From warm service to signature classics, Antalya welcomes you to experience dining that feels memorable, comforting, and distinctly Turkish.
</p> </p>
<Link href="/about-antalya-restaurant" className={styles.button}> <Link href="/about-antalya-restaurant" className={styles.button} prefetch={false}>
Learn More Learn More
</Link> </Link>
</div> </div>

View File

@ -62,7 +62,7 @@ export default function Blogs() {
</div> </div>
<h3 className={styles.blogTitle}>{blog.title}</h3> <h3 className={styles.blogTitle}>{blog.title}</h3>
<p className={styles.excerpt}>{blog.para}</p> <p className={styles.excerpt}>{blog.para}</p>
<Link href={`/antalya-turkish-food-blog/${blog.slug}`} className={styles.button}> <Link href={`/antalya-turkish-food-blog/${blog.slug}`} className={styles.button} prefetch={false}>
View More View More
</Link> </Link>
</div> </div>
@ -72,7 +72,7 @@ export default function Blogs() {
</div> </div>
<div className={styles.viewMoreContainer}> <div className={styles.viewMoreContainer}>
<Link href="/antalya-turkish-food-blog" className={styles.viewMoreButton}> <Link href="/antalya-turkish-food-blog" className={styles.viewMoreButton} prefetch={false}>
Read More Blogs Read More Blogs
</Link> </Link>
</div> </div>

View File

@ -224,7 +224,7 @@ export default function Catering() {
{/* Bottom Action Row */} {/* Bottom Action Row */}
<motion.div variants={itemVariants} className={styles.actionRow}> <motion.div variants={itemVariants} className={styles.actionRow}>
<Link href="/catering-services-ontario" className={styles.discoverBtn}> <Link href="/catering-services-ontario" className={styles.discoverBtn} prefetch={false}>
Learn more Learn more
</Link> </Link>
</motion.div> </motion.div>

View File

@ -16,7 +16,7 @@ export default function Footer() {
{/* Brand Column */} {/* Brand Column */}
<div className={`${styles.column} ${styles.brandColumn}`}> <div className={`${styles.column} ${styles.brandColumn}`}>
<div className={styles.logo}> <div className={styles.logo}>
<Link href="/" onClick={() => window.scrollTo(0, 0)}> <Link href="/" onClick={() => window.scrollTo(0, 0)} prefetch={false}>
<Image <Image
src="/images/footer-logo.webp" src="/images/footer-logo.webp"
alt="Antalya Restaurant Footer Logo" alt="Antalya Restaurant Footer Logo"
@ -72,13 +72,13 @@ export default function Footer() {
<div className={`${styles.column} ${styles.linksColumn}`}> <div className={`${styles.column} ${styles.linksColumn}`}>
<h3 className={styles.heading}>Quick Links</h3> <h3 className={styles.heading}>Quick Links</h3>
<ul className={styles.linkList}> <ul className={styles.linkList}>
<li className={styles.linkItem}><Link href="/" className={styles.link}>Home</Link></li> <li className={styles.linkItem}><Link href="/" className={styles.link} prefetch={false}>Home</Link></li>
<li className={styles.linkItem}><Link href="/about-antalya-restaurant" className={styles.link}>About</Link></li> <li className={styles.linkItem}><Link href="/about-antalya-restaurant" className={styles.link} prefetch={false}>About</Link></li>
<li className={styles.linkItem}><Link href="/antalya-restaurant-gallery" className={styles.link}>Gallery</Link></li> <li className={styles.linkItem}><Link href="/antalya-restaurant-gallery" className={styles.link} prefetch={false}>Gallery</Link></li>
<li className={styles.linkItem}><Link href="/antalya-restaurant-menu" className={styles.link}>Menu</Link></li> <li className={styles.linkItem}><Link href="/antalya-restaurant-menu" className={styles.link} prefetch={false}>Menu</Link></li>
<li className={styles.linkItem}><Link href="/catering-services-ontario" className={styles.link}>Catering</Link></li> <li className={styles.linkItem}><Link href="/catering-services-ontario" className={styles.link} prefetch={false}>Catering</Link></li>
<li className={styles.linkItem}><Link href="/antalya-turkish-food-blog" className={styles.link}>Blog</Link></li> <li className={styles.linkItem}><Link href="/antalya-turkish-food-blog" className={styles.link} prefetch={false}>Blog</Link></li>
<li className={styles.linkItem}><Link href="/book-a-table" className={styles.link}>Contact</Link></li> <li className={styles.linkItem}><Link href="/book-a-table" className={styles.link} prefetch={false}>Contact</Link></li>
</ul> </ul>
</div> </div>

View File

@ -62,7 +62,7 @@ export default function Gallery() {
</div> </div>
))} ))}
</div> </div>
<Link href="/antalya-restaurant-gallery" className={styles.button}>View More</Link> <Link href="/antalya-restaurant-gallery" className={styles.button} prefetch={false}>View More</Link>
{lightboxOpen && ( {lightboxOpen && (
<div className={styles.lightbox} onClick={closeLightbox}> <div className={styles.lightbox} onClick={closeLightbox}>

View File

@ -5,21 +5,21 @@ export default function Header() {
return ( return (
<header className={styles.header}> <header className={styles.header}>
<div className={styles.container}> <div className={styles.container}>
<Link href="/" className={styles.logo}> <Link href="/" className={styles.logo} prefetch={false}>
{/* Placeholder for logo icon if needed */} {/* Placeholder for logo icon if needed */}
<div className={styles.logoText}> <div className={styles.logoText}>
<span>ANTALYA</span> <span>ANTALYA</span>
</div> </div>
</Link> </Link>
<nav className={styles.nav}> <nav className={styles.nav}>
<ul className={styles.navList}> <ul className={styles.navList}>
<li><Link href="/" className={styles.navLink}>Home</Link></li> <li><Link href="/" className={styles.navLink} prefetch={false}>Home</Link></li>
<li><Link href="#about" className={styles.navLink}>About</Link></li> <li><Link href="#about" className={styles.navLink} prefetch={false}>About</Link></li>
<li><Link href="#gallery" className={styles.navLink}>Gallery</Link></li> <li><Link href="#gallery" className={styles.navLink} prefetch={false}>Gallery</Link></li>
<li><Link href="#menu" className={styles.navLink}>Menu</Link></li> <li><Link href="#menu" className={styles.navLink} prefetch={false}>Menu</Link></li>
<li><Link href="#blog" className={styles.navLink}>Blog</Link></li> <li><Link href="#blog" className={styles.navLink} prefetch={false}>Blog</Link></li>
<li><Link href="#contact" className={styles.navLink}>Contact</Link></li> <li><Link href="#contact" className={styles.navLink} prefetch={false}>Contact</Link></li>
</ul> </ul>
</nav> </nav>

View File

@ -90,10 +90,10 @@ export default function Hero() {
animate={{ opacity: 1, y: 0 }} animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, delay: 0.9 }} transition={{ duration: 0.6, delay: 0.9 }}
> >
<Link href="/antalya-restaurant-menu" className={`${styles.btn} ${styles.btnPrimary}`}> <Link href="/antalya-restaurant-menu" className={`${styles.btn} ${styles.btnPrimary}`} prefetch={false}>
{slides[currentSlide].btn1} {slides[currentSlide].btn1}
</Link> </Link>
<Link href="/book-a-table" className={`${styles.btn} ${styles.btnSecondary}`}> <Link href="/book-a-table" className={`${styles.btn} ${styles.btnSecondary}`} prefetch={false}>
{slides[currentSlide].btn2} {slides[currentSlide].btn2}
</Link> </Link>
</motion.div> </motion.div>

View File

@ -96,7 +96,7 @@ export default function HomeMenu() {
{/* View More Button */} {/* View More Button */}
<div style={{ textAlign: "center", marginTop: "80px" }}> <div style={{ textAlign: "center", marginTop: "80px" }}>
<Link href="/antalya-restaurant-menu" className={styles.tab}> <Link href="/antalya-restaurant-menu" className={styles.tab} prefetch={false}>
View Full Menu View Full Menu
</Link> </Link>
</div> </div>

View File

@ -78,7 +78,7 @@ export default function Navbar() {
return ( return (
<nav className={`${styles.navbar} ${scrolled ? styles.navbarScrolled : ''}`}> <nav className={`${styles.navbar} ${scrolled ? styles.navbarScrolled : ''}`}>
<div className={styles.logoContainer}> <div className={styles.logoContainer}>
<Link href="/" onClick={closeMenu}> <Link href="/" onClick={closeMenu} prefetch={false}>
<Image <Image
src="/images/header-logo.png" src="/images/header-logo.png"
alt="Antalya Restaurant Navigation Logo" alt="Antalya Restaurant Navigation Logo"
@ -93,7 +93,7 @@ export default function Navbar() {
{/* Desktop Menu */} {/* Desktop Menu */}
<div className={styles.desktopMenu}> <div className={styles.desktopMenu}>
{navLinks.map((link) => ( {navLinks.map((link) => (
<Link key={link.name} href={link.href} className={styles.navLink}> <Link key={link.name} href={link.href} className={styles.navLink} prefetch={false}>
{link.name} {link.name}
</Link> </Link>
))} ))}
@ -122,6 +122,7 @@ export default function Navbar() {
href={link.href} href={link.href}
className={styles.mobileNavLink} className={styles.mobileNavLink}
onClick={closeMenu} onClick={closeMenu}
prefetch={false}
> >
{link.name} {link.name}
</Link> </Link>

View File

@ -94,7 +94,7 @@ export default function PopularDishes() {
</div> </div>
<h3 className={styles.dishName}>{dish.name}</h3> <h3 className={styles.dishName}>{dish.name}</h3>
<p className={styles.description}>{dish.description}</p> <p className={styles.description}>{dish.description}</p>
<Link href="/antalya-restaurant-menu" className={styles.button}> <Link href="/antalya-restaurant-menu" className={styles.button} prefetch={false}>
View More View More
</Link> </Link>
</motion.div> </motion.div>
@ -107,7 +107,7 @@ export default function PopularDishes() {
viewport={{ once: true }} viewport={{ once: true }}
transition={{ duration: 0.6, delay: 0.4 }} transition={{ duration: 0.6, delay: 0.4 }}
> >
<Link href="/antalya-restaurant-menu" className={styles.viewMoreButton}> <Link href="/antalya-restaurant-menu" className={styles.viewMoreButton} prefetch={false}>
View More View More
</Link> </Link>
</motion.div> </motion.div>