Plagger::Plugin::Filter::TruePermalink - Normalize permalink using its own plugin files
- module: Filter::TruePermalink
This plugin normalizes permalink using YAML based URL pattern files.
This plugin rewrites permalink attribute of $entry, while keeping link as is. If $entry has enclosures, this plugin also tries to rewrite url of them.
$entry
If set to 1, this plugin issues GET request to entry permalinks to see if the server returns 301 or 302 redirect to other URL. Defaults to 1.
You can write your own pattern file using YAML data format. Usable keys are:
Your name. (Optional)
Regular expression rule to match with entry's link. Rewrites only happen when the URL form matches. You can omit this configuration to apply the rewrite rule to any URLs.
Replacement regexp to filter permalink. Permalink is stored in $_ variable so that you can write:
$_
rewrite: s/;jsession_id=\w+//
URL query parameter to extract normalized permalink.
query_param: destination
See assets/plugins/Filter-TruePermalink for more examples.
assets/plugins/Filter-TruePermalink
youpy
Tatsuhiko Miyagawa
Plagger
To install Plagger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plagger
CPAN shell
perl -MCPAN -e shell install Plagger
For more information on module installation, please visit the detailed CPAN module installation guide.