定制 wazum/seo-canonical-guard 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wazum/seo-canonical-guard

最新稳定版本:1.1.0

Composer 安装命令:

composer require wazum/seo-canonical-guard

包简介

Prevent unwanted parameters in canonical URL

README 文档

README

What does it do?

The TYPO3 core seo extension adds every given parameter from the request to the generated canonical URL.

This extension helps to prevent unwanted parameters in the canonical URL.

Extension plugin namespaces

By default parameters within the namespaces from active extensions (e.g. tx_news_pi1) using Extbase are allowed. This still allows parameters not used by these extensions like tx_news_pi1[wtf]=seo. If you need to include third-party parameters or parameters for extensions based on \TYPO3\CMS\Frontend\Plugin\AbstractPlugin (aka pi based) or need to be very strict, disable the setting and/or use the explicit whitelist.

Explicit whitelist

In addition to or as replacement for the allowed namespaces from active extension Extbase plugins (see above), you can set a whitelist if you need to allow additional parameters or want to specify exactly which parameters are allowed. Go to Admin Tools > Settings > Extension Configuration and select seo_canonical_guard and set the allowed parameters or parameter namespaces as follows:

parameter1, parameter2, namespace_xy\[(.*?)\], namespace_yz\[(explicit1|explicit2)\]

You can add a list of single parameters or use regular expressions (you can omit the /…/ around, but you have to escape special characters).

Requirements

The extension depends on the TYPO3 core seo extension.

Installation

Require the latest package:

composer require wazum/seo-canonical-guard

Inspiration

The extension is inspired by https://github.com/sourcebroker/urlguard which definitely should be installed too if you use the addQueryString when creating links with TypoScript!

Say thanks! and support me

You like this extension? Get something for me (surprise! surprise!) from my wishlist on Amazon or help me pay the next pizza or Pho soup (mjam). Thanks a lot!

统计信息

  • 总下载量: 13.56k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2019-10-19