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

Nav Links Not Working #389

Open
jpwalters opened this issue Feb 28, 2024 · 2 comments
Open

Nav Links Not Working #389

jpwalters opened this issue Feb 28, 2024 · 2 comments

Comments

@jpwalters
Copy link

jpwalters commented Feb 28, 2024

  • Operating system: Windows 11
  • Browser: Chrome
  • Branch: v5

BUG: The navigation links aren't working. You can open a node but when you attempt to click a link like Accordion, Cards, List Group, etc. nothing happens. If I modify the url manually the page for example http://localhost:3000/#/base/accordion the page loads normally.

image

@jpwalters
Copy link
Author

Work Around: In the _nav.js file if you change the property to: to be href: all the navigation links will work as expected again. Plus you have to add # in front of each url.

@mman
Copy link

mman commented Apr 22, 2024

Thanks @jpwalters for this report and suggested workaround. Can confirm that your fix works victronenergy/venus-influx-loader@2c55b47.

However not sure what has changed and why to: no longer works.

CNavLink param to is marked as @ignore since 4.0.

export interface CNavLinkProps extends Omit<CLinkProps, 'idx'> {
/**
* @ignore
*/
idx?: string
/**
* @ignore
*/
to?: string
}

which is why it does not show at all in the official docs for CNavLink.

https://coreui.io/react/docs/components/navs-tabs/#cnavlink

Anyway, where does the trick with prepending the href with # comes from?

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

No branches or pull requests

2 participants