Comments (8)
Let's see if we can get it in 3.6.1 getkirby/kirby#3964
from kirby-bouncer.
hi, any news on this issue? would be awesome to have bouncer working with 3.6!
from kirby-bouncer.
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.
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:
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.
Awesome, it does!
from kirby-bouncer.
Awesome! I'll get working on the plugin based on this.
from kirby-bouncer.
Seems like it's good to go on the next
branch, when 3.6.1 rolls out :)
from kirby-bouncer.
Awesome
from kirby-bouncer.
Related Issues (13)
- screenshot
- Better fields list declaration HOT 2
- Infinit reload on kirby installation caused by kirby-bouncer
- Bouncer and Draft Status HOT 1
- Problems accessing subpages and options HOT 7
- Password reset form
- add comment to config snippet HOT 1
- Selected pages are not showing up HOT 1
- Questions about Bouncer plugin and Permissions HOT 1
- Feature request: limit search results HOT 1
- "Basculer vers"
- Moving pages doesn't work when I'm logged in as a restricted user
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-bouncer.