【发布时间】:2019-01-30 08:34:12
【问题描述】:
我将以下 config.yaml 用于标准新闻插件:
NewsPlugin:
type: Extbase
limitToPages:
- 3
- 15
extension: News
plugin: Pi1
routes:
-
routePath: '/l/{page}'
_controller: 'News::list'
_arguments:
page: '@widget_0/currentPage'
-
routePath: '/tag/{tag_name}'
_controller: 'News::list'
_arguments:
tag_name: overwriteDemand/tags
-
routePath: '/{news_title}'
_controller: 'News::detail'
_arguments:
news_title: news
-
routePath: '/archiv/{year}/{month}'
_controller: 'News::archive'
defaultController: 'News::list'
defaults:
page: '0'
news_title: ''
tag_name: ''
year: '2019'
month: '01'
aspects:
news_title:
type: PersistedAliasMapper
tableName: tx_news_domain_model_news
routeFieldName: path_segment
现在一切都很好,唯一的问题是,当我使用分页时,我的网址总是附加一个 cHash。像链接到第 2 页的结果在
http://www.example.com/newspage/l/2?cHash=313213213213213a2f13asf321
任何想法为什么会发生这种情况?
【问题讨论】: