Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

pro-layout menu bug #482

Closed
1 task
chenlong88 opened this issue May 28, 2020 · 1 comment
Closed
1 task

pro-layout menu bug #482

chenlong88 opened this issue May 28, 2020 · 1 comment

Comments

@chenlong88
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/ant-design/ant-design-pro-layout/blob/HEAD/changelog.en-US.md

Steps to reproduce

部署项目到一个目录下 ,访问地址为localhost/app/
使用 BasicLayout 设置好导航,通过点击导航的跳转页面,对应的导航没有高亮,而且面包屑导航也不好使,翻阅源码发现实现高亮的代码读取的是 window.location.pathname 应该读props.location.pathname ,window.location.pathname会带目录,props.location.pathname 不会带目录

What is expected?

跳转页面对应的导航要高亮,面包屑要好使

What is actually happening?

跳转页面对应的导航没有高亮,面包屑要不好使

Environment Info
antd 5.0
React 16.9.34
System windows
Browser All browsers
@afc163 afc163 transferred this issue from ant-design/ant-design May 28, 2020
@chenshuai2144
Copy link
Collaborator

fixed in plugin-layout

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

No branches or pull requests

2 participants