Next.js Discord

Discord Forum

Hostname being added in front of href in a tag when i deploy my application but not locally

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Avatar
Giant pandaOP
Hello, i don't understand why i have my hostname in front of the href of a <a/> tag targeting external url , do you have an idea why ?

5 Replies

Avatar
not fully following you, so what's your href of a tag in your application?
Avatar
Giant pandaOP
locally i have <a href="https://external-website.com"/> and when i deploy my app online i have <a href="https://original-websitehttps://external-website.com"/>
Avatar
Giant pandaOP
any idea ?
Avatar
I believe you have wrong href in your codebase
gimme your source code for the <a /> tag