Giter Site home page Giter Site logo

wintercms / wn-redirect-plugin Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 8.0 657 KB

Advanced redirect plugin for Winter CMS.

License: GNU General Public License v2.0

PHP 85.97% CSS 1.11% JavaScript 0.50% HTML 12.43%
wintercms redirect hacktoberfest

wn-redirect-plugin's Issues

Example of a regular expression

Hello,

Please give me an example of a regular expression for this redirect match type:

I need redirect all pages from /vps/kb/* to /support/kb/*

in * - many pages with same URI.

Export uses title instead of code

When exporting the table, the column names are actual names and not the DB code name.
image
I would expect it to be (for example) match_type, and not Match Type [match_type] (Allowed values: exact, placeholders, regex)

tests fail in local env but pass on github.

$ ./artisan winter:test -p winter.redirect
Running tests for plugin: winter.redirect
PHPUnit 9.5.21 #StandWithUkraine

..........E

Time: 00:09.545, Memory: 46.50 MB

There was 1 error:

1) Winter\Redirect\Tests\Cases\RedirectManagerTest::testTargetCmsPageRedirectWithRegexSource
BadMethodCallException: Method Winter\Storm\Validation\Validator::validateIsRegex does not exist.

/home/w2c/w2c.studioazura.com/current/public/vendor/laravel/framework/src/Illuminate/Validation/Validator.php:1534
/home/w2c/w2c.studioazura.com/current/public/vendor/laravel/framework/src/Illuminate/Validation/Validator.php:609
/home/w2c/w2c.studioazura.com/current/public/vendor/laravel/framework/src/Illuminate/Validation/Validator.php:415
/home/w2c/w2c.studioazura.com/current/public/vendor/winter/storm/src/Database/Traits/Validation.php:308
/home/w2c/w2c.studioazura.com/current/public/vendor/winter/storm/src/Database/Traits/Validation.php:76
/home/w2c/w2c.studioazura.com/current/public/vendor/winter/storm/src/Support/Traits/Emitter.php:182
/home/w2c/w2c.studioazura.com/current/public/vendor/winter/storm/src/Database/Model.php:787
/home/w2c/w2c.studioazura.com/current/public/vendor/winter/storm/src/Database/Model.php:830
/home/w2c/w2c.studioazura.com/current/public/plugins/winter/redirect/tests/cases/RedirectManagerTest.php:455

Invalid security token error on Statistics page

With latest changes on 1.1.8-dev branch (probably because of wintercms/winter@f79e672) it's not possible to view Statistics page of plugin, the AJAX handler error pop-up is shown:

2022-05-22_19-13

With message "Invalid security token error" and no data is shown/returned (loading indicators are spinning forever).

This happens because on Statistics page AJAX POST requests are made to gather the information so the following check fails:

https://github.com/wintercms/winter/blob/0c5099f0b102fc43634bce01cfeafb1763a39251/modules/backend/classes/Controller.php#L207

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.