Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue: 239: Error using <Link> with <a> tag in next.js versions #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ramsha42001
Copy link

I have removed usage of tag inside link tag since it will throw an error for next.js versions 13 or higher. The hard part of this upgrade is tracking down all the instances of this in a sufficiently large codebase.

Removed tag inside tag in banner.jsx file. Now it's working fine for higher versions.

Screenshot 2024-08-18 143639

Copy link

vercel bot commented Aug 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 18, 2024 9:07am

@Prudhvi-232
Copy link

Prudhvi-232 commented Aug 19, 2024

Problem while Using This:
Custom Styling or Attributes: If you need to add custom attributes (like className, target, or rel) to the anchor tag, you’ll need to either include an tag or use the legacyBehavior with an tag.
Example when you need an tag:

Example code:

image

In this case, the className and target attributes are applied directly to the tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants