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

Hash模式breadcrumb问题 #2538

Closed
sustand opened this issue Nov 26, 2018 · 5 comments · Fixed by #3174
Closed

Hash模式breadcrumb问题 #2538

sustand opened this issue Nov 26, 2018 · 5 comments · Fixed by #3174

Comments

@sustand
Copy link

sustand commented Nov 26, 2018

Version

1.8.0

Environment

win10,chrome66, node8.11.1

Reproduction link

https://stackblitz.com/edit/ng-zorro-breadcrumb-auto-fjsa2y?file=src/app/app-routing.module.ts

Steps to reproduce

  1. 点击菜单,进入某个页面,生成面包屑
  2. 刷新页面,发现面包屑消失
  3. 点击面包屑链接,发现此链接为h5模式,跳转失败

What is expected?

  1. 刷新页面,发现面包屑存在
  2. 点击面包屑链接,跳转成功
  3. 某些路由中不配置data: { breadcrumb: '' },,期望可过滤

What is actually happening?

问题解决

Other?

@Eillean
Copy link

Eillean commented Nov 26, 2018

这不单单是Hash模式breadcrumb问题吧,如下写不用Hash模式依然存在此问题:

export const AppRoutes: any = RouterModule.forRoot(routes);

https://stackblitz.com/edit/ng-zorro-breadcrumb-auto-vpbfsf?embed=1&file=src/app/pages/main/main-routing.module.ts

@wzhudev wzhudev self-assigned this Nov 27, 2018
@emondora
Copy link
Contributor

breadcrumb不放置于任何router-outlet时,刷新后可初始化成功,但放置到router-outlet里面的时候,会有该问题。

@thinkdj
Copy link

thinkdj commented Mar 24, 2019

Is there a workaround / solution to this, which we can implement till a fix comes out ?

@wzhudev

This comment has been minimized.

@luopeihai

This comment has been minimized.

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

Successfully merging a pull request may close this issue.

7 participants