SAP Spartacus not found页面的显示触发机制 - ErrorPageTemplate
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus not found页面的显示触发机制 - ErrorPageTemplate
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在什么情況下,SAP Spartacus會顯示404 not found頁面?
請求id為not-found的content page:
not-found.handler.ts:
semantic路由路徑notFound對應的url path: not-found
再根據notFound關鍵字搜索:
找到了cms-page-guard.service.ts的canActivateNotFoundPage實現:
首先調用cmsService.getPage讀取notFoundCms Page:
notfoundPage基于的template:ErrorPageTemplate:
檢測是否canActivatePage:
pageContext數據結構就包含id和type:其中ContentPage指CMS page:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的SAP Spartacus not found页面的显示触发机制 - ErrorPageTemplate的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: A. 纵情
- 下一篇: SAP Spartacus Loader