Giter VIP home page Giter VIP logo

Comments (8)

distantnative avatar distantnative commented on September 13, 2024 2

Let's see if we can get it in 3.6.1 getkirby/kirby#3964

from kirby-bouncer.

namlit4 avatar namlit4 commented on September 13, 2024 1

hi, any news on this issue? would be awesome to have bouncer working with 3.6!

from kirby-bouncer.

distantnative avatar distantnative commented on September 13, 2024 1

Indeed, I think we would need to move this https://github.com/getkirby/kirby/blob/main/src/Panel/Panel.php#L305-L312 inside the try-catch block that follows. Could you try if that would work for you?

from kirby-bouncer.

sylvainjule avatar sylvainjule commented on September 13, 2024

Hi Nico,

Apologies for the delay in addressing this. Thanks a lot for taking the time to identify the issue and pointing me in those directions! This sounds great and I also feel that it will allow to come up with a much simpler setup.

Although for now, I don't get how to trigger a redirect from the hook. As a first test, I've tried using Panel::go('...') but without success:

'hooks' => [
    'panel.route:before' => function($route, $path, $method) {
        if($path != 'pages/annotator') {
            Panel::go('pages/annotator');
        }
    }
]

Ends up with an error on click anywhere when I'm already on this page (popup shows: "The $view could not be loaded"), and this screen anytime else:

Capture d’écran 2021-11-24 à 16 07 40

As a comparison, it redirects with the simple go('panel/...'), but of course without the proper routing stuff / language code / etc that should happen.

Am I overlooking something?
I've just started to dig into this so I might be missing something obvious, I'll keep looking but in the meantime if you have any advice, I'd gladly take them :)

from kirby-bouncer.

sylvainjule avatar sylvainjule commented on September 13, 2024

Awesome, it does!

from kirby-bouncer.

sylvainjule avatar sylvainjule commented on September 13, 2024

Awesome! I'll get working on the plugin based on this.

from kirby-bouncer.

sylvainjule avatar sylvainjule commented on September 13, 2024

Seems like it's good to go on the next branch, when 3.6.1 rolls out :)

from kirby-bouncer.

distantnative avatar distantnative commented on September 13, 2024

Awesome

from kirby-bouncer.

Related Issues (13)

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.