console issues are fixed
This commit is contained in:
parent
0d3169f49d
commit
fb7c710f5e
@ -15,6 +15,10 @@
|
||||
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
|
||||
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
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
|
||||
@ -21,11 +21,17 @@
|
||||
<mimeMap fileExtension=".js" mimeType="text/javascript" />
|
||||
<remove fileExtension=".css" />
|
||||
<mimeMap fileExtension=".css" mimeType="text/css" />
|
||||
<remove fileExtension=".txt" />
|
||||
<mimeMap fileExtension=".txt" mimeType="text/plain" />
|
||||
</staticContent>
|
||||
<httpErrors errorMode="Custom">
|
||||
<remove statusCode="404" />
|
||||
<error statusCode="404" path="/404.html" responseMode="ExecuteURL" />
|
||||
</httpErrors>
|
||||
<modules runAllManagedModulesForAllRequests="true"/>
|
||||
<rewrite>
|
||||
<rules>
|
||||
</rules>
|
||||
</rewrite>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
|
||||
@ -96,7 +96,7 @@ export default function AboutContent() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>About Us</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / About
|
||||
<Link href="/" prefetch={false}>Home</Link> / About
|
||||
</p>
|
||||
</div>
|
||||
</motion.section>
|
||||
@ -126,7 +126,7 @@ export default function AboutContent() {
|
||||
<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.
|
||||
</p>
|
||||
<Link href="/antalya-restaurant-menu" className={styles.menuButton}>
|
||||
<Link href="/antalya-restaurant-menu" className={styles.menuButton} prefetch={false}>
|
||||
VIEW OUR MENU
|
||||
</Link>
|
||||
</motion.div>
|
||||
@ -363,7 +363,7 @@ export default function AboutContent() {
|
||||
viewport={{ once: true }}
|
||||
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}
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
@ -103,7 +103,7 @@ export default function GalleryContent() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>Our Gallery</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / Gallery
|
||||
<Link href="/" prefetch={false}>Home</Link> / Gallery
|
||||
</p>
|
||||
</div>
|
||||
</motion.section>
|
||||
|
||||
@ -83,7 +83,7 @@ export default function MenuPage() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>Our Menu</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / Menu
|
||||
<Link href="/" prefetch={false}>Home</Link> / Menu
|
||||
</p>
|
||||
</div>
|
||||
</motion.section>
|
||||
|
||||
@ -59,7 +59,7 @@ export default function BlogContent() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>Our Blog</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / Blog
|
||||
<Link href="/" prefetch={false}>Home</Link> / Blog
|
||||
</p>
|
||||
</div>
|
||||
</motion.section>
|
||||
@ -103,11 +103,11 @@ export default function BlogContent() {
|
||||
</div>
|
||||
<div className={styles.cardContent}>
|
||||
<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>
|
||||
<p className={styles.date}>{blog.date}</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
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@ -55,7 +55,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
|
||||
|
||||
<div className={styles.errorContainer}>
|
||||
<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>
|
||||
<Footer />
|
||||
</main>
|
||||
@ -71,7 +71,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>{blog.title}</h1>
|
||||
<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>
|
||||
</div>
|
||||
</section>
|
||||
@ -119,7 +119,7 @@ export default async function BlogDetailPage({ params }: { params: Promise<{ id:
|
||||
|
||||
{/* 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>
|
||||
</article>
|
||||
|
||||
@ -147,7 +147,7 @@ export default function ContactContent() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>Contact Us</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / Contact
|
||||
<Link href="/" prefetch={false}>Home</Link> / Contact
|
||||
</p>
|
||||
</div>
|
||||
</motion.section>
|
||||
|
||||
@ -119,7 +119,7 @@ export default function CateringContent() {
|
||||
<div className={styles.heroContent}>
|
||||
<h1 className={styles.heroTitle}>Catering</h1>
|
||||
<p className={styles.breadcrumb}>
|
||||
<Link href="/">Home</Link> / Catering
|
||||
<Link href="/" prefetch={false}>Home</Link> / Catering
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
@ -451,7 +451,7 @@ export default function CateringContent() {
|
||||
<p className={styles.servingDescription}>
|
||||
Whether hosting a corporate lunch, wedding, or private dinner, Antalya ensures your guests enjoy a memorable culinary experience.
|
||||
</p>
|
||||
<Link href="/antalya-restaurant-menu" className={styles.lastButton}>
|
||||
<Link href="/antalya-restaurant-menu" className={styles.lastButton} prefetch={false}>
|
||||
View Our Menu
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
@ -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.
|
||||
</p>
|
||||
|
||||
<Link href="/about-antalya-restaurant" className={styles.button}>
|
||||
<Link href="/about-antalya-restaurant" className={styles.button} prefetch={false}>
|
||||
Learn More
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@ -62,7 +62,7 @@ export default function Blogs() {
|
||||
</div>
|
||||
<h3 className={styles.blogTitle}>{blog.title}</h3>
|
||||
<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
|
||||
</Link>
|
||||
</div>
|
||||
@ -72,7 +72,7 @@ export default function Blogs() {
|
||||
</div>
|
||||
|
||||
<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
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@ -224,7 +224,7 @@ export default function Catering() {
|
||||
|
||||
{/* Bottom Action Row */}
|
||||
<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 →
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
@ -16,7 +16,7 @@ export default function Footer() {
|
||||
{/* Brand Column */}
|
||||
<div className={`${styles.column} ${styles.brandColumn}`}>
|
||||
<div className={styles.logo}>
|
||||
<Link href="/" onClick={() => window.scrollTo(0, 0)}>
|
||||
<Link href="/" onClick={() => window.scrollTo(0, 0)} prefetch={false}>
|
||||
<Image
|
||||
src="/images/footer-logo.webp"
|
||||
alt="Antalya Restaurant Footer Logo"
|
||||
@ -72,13 +72,13 @@ export default function Footer() {
|
||||
<div className={`${styles.column} ${styles.linksColumn}`}>
|
||||
<h3 className={styles.heading}>Quick Links</h3>
|
||||
<ul className={styles.linkList}>
|
||||
<li className={styles.linkItem}><Link href="/" className={styles.link}>Home</Link></li>
|
||||
<li className={styles.linkItem}><Link href="/about-antalya-restaurant" className={styles.link}>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-menu" className={styles.link}>Menu</Link></li>
|
||||
<li className={styles.linkItem}><Link href="/catering-services-ontario" className={styles.link}>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="/book-a-table" className={styles.link}>Contact</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} prefetch={false}>About</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} prefetch={false}>Menu</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} prefetch={false}>Blog</Link></li>
|
||||
<li className={styles.linkItem}><Link href="/book-a-table" className={styles.link} prefetch={false}>Contact</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ export default function Gallery() {
|
||||
</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 && (
|
||||
<div className={styles.lightbox} onClick={closeLightbox}>
|
||||
|
||||
@ -5,21 +5,21 @@ export default function Header() {
|
||||
return (
|
||||
<header className={styles.header}>
|
||||
<div className={styles.container}>
|
||||
<Link href="/" className={styles.logo}>
|
||||
<Link href="/" className={styles.logo} prefetch={false}>
|
||||
{/* Placeholder for logo icon if needed */}
|
||||
<div className={styles.logoText}>
|
||||
<span>ANTALYA</span>
|
||||
<span>ANTALYA</span>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
<nav className={styles.nav}>
|
||||
<ul className={styles.navList}>
|
||||
<li><Link href="/" className={styles.navLink}>Home</Link></li>
|
||||
<li><Link href="#about" className={styles.navLink}>About</Link></li>
|
||||
<li><Link href="#gallery" className={styles.navLink}>Gallery</Link></li>
|
||||
<li><Link href="#menu" className={styles.navLink}>Menu</Link></li>
|
||||
<li><Link href="#blog" className={styles.navLink}>Blog</Link></li>
|
||||
<li><Link href="#contact" className={styles.navLink}>Contact</Link></li>
|
||||
<li><Link href="/" className={styles.navLink} prefetch={false}>Home</Link></li>
|
||||
<li><Link href="#about" className={styles.navLink} prefetch={false}>About</Link></li>
|
||||
<li><Link href="#gallery" className={styles.navLink} prefetch={false}>Gallery</Link></li>
|
||||
<li><Link href="#menu" className={styles.navLink} prefetch={false}>Menu</Link></li>
|
||||
<li><Link href="#blog" className={styles.navLink} prefetch={false}>Blog</Link></li>
|
||||
<li><Link href="#contact" className={styles.navLink} prefetch={false}>Contact</Link></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
@ -90,10 +90,10 @@ export default function Hero() {
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
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}
|
||||
</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}
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
@ -96,7 +96,7 @@ export default function HomeMenu() {
|
||||
|
||||
{/* View More Button */}
|
||||
<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
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@ -78,7 +78,7 @@ export default function Navbar() {
|
||||
return (
|
||||
<nav className={`${styles.navbar} ${scrolled ? styles.navbarScrolled : ''}`}>
|
||||
<div className={styles.logoContainer}>
|
||||
<Link href="/" onClick={closeMenu}>
|
||||
<Link href="/" onClick={closeMenu} prefetch={false}>
|
||||
<Image
|
||||
src="/images/header-logo.png"
|
||||
alt="Antalya Restaurant Navigation Logo"
|
||||
@ -93,7 +93,7 @@ export default function Navbar() {
|
||||
{/* Desktop Menu */}
|
||||
<div className={styles.desktopMenu}>
|
||||
{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>
|
||||
))}
|
||||
@ -122,6 +122,7 @@ export default function Navbar() {
|
||||
href={link.href}
|
||||
className={styles.mobileNavLink}
|
||||
onClick={closeMenu}
|
||||
prefetch={false}
|
||||
>
|
||||
{link.name}
|
||||
</Link>
|
||||
|
||||
@ -94,7 +94,7 @@ export default function PopularDishes() {
|
||||
</div>
|
||||
<h3 className={styles.dishName}>{dish.name}</h3>
|
||||
<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
|
||||
</Link>
|
||||
</motion.div>
|
||||
@ -107,7 +107,7 @@ export default function PopularDishes() {
|
||||
viewport={{ once: true }}
|
||||
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
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user