skeeks/yii2-external-links AutoCorrect external links after rendering html page

frameworkappskeekssxautocorrect

AutoCorrect external links after rendering html page

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/yii2-external-links "*"

or add

"skeeks/yii2-external-links": "*"

How to use (simple)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',
        ],
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

How to use (advanced)

//App config
[
    'bootstrap'    => ['externalLinks'],

    'components'    =>
    [
        //....
        'externalLinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksComponent',

            //Additional
            'enabled'                           => true,
            'noReplaceLocalDomain'              => true,
            'backendRoute'                      => '/externallinks/redirect/redirect',
            'backendRouteParam'                 => 'url',
            'enabledB64Encode'                  => true,
            'noReplaceLinksOnDomains'           => [
                'site1.ru',
                'www.site1.ru',
                'site2.ru',
            ],
        ],

        'urlManager' => 
        [
            'rules' => 
            [
                //Rewriting the standard route
                //And add robots.txt  Disallow: /~*
                '~skeeks-redirect'                        => '/externallinks/redirect/redirect',
            ]
        ]
        //....
    ],

    'modules'    =>
    [
        //....
        'externallinks' =>
        [
            'class' => 'skeeks\yii2\externalLinks\ExternalLinksModule',
        ],
        //....
    ]
]

Screenshot

SkeekS CMS admin panel


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com

Changelog

CHANGELOG

1.1.1

  • replacing references only after <body

1.1.0

  • remove callback property
  • EVENT_BEFORE_PROCESSING before process replace
  • fix bug whith redirects

1.0.1

  • fix bug whith redirects

1.0.0

  • Stable release

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.4 is the latest of 8 releases



BSD-3-Clause license
Stats
4 github stars & 0 github forks
0 downloads in the last day
12 downloads in the last 30 days
2715 total downloads