Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

310
Views
Error: Requested and resolved page mismatch: /../public/logo.svg /public/logo.svg

I keep getting this error after in terminal when importing logo; the logo is importing though not sure why. There isn't much support regarding this error online on here as well as on next js if anyone has come across this and can help much appreciated

<Image src={'/../public/logo.svg'} width={width} height={height} />;

It wont run without the / in the beginning.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You are trying to ask for /../public/logo.svg which starts at the root, tries to go a level above the root, and then down to public/logo.svg.

Since the client isn't allowed to go above the root (and access arbitrary files on the server!), the ../ gets stripped out (with the security error you see) and the browser is given the resulting URL.

The SVG is displayed because after recovering from the error, the URL happened to point to the SVG.

To get rid of the error message, stop making the error. Remove ../ from the URL.

about 4 years ago · Juan Pablo Isaza Report

0

import icon from react component instead*

const Logo = ({ width, height }) => {
  return (
    <svg
    </svg>
  );
};

export default Logo;

import Logo into components

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!