-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong url and content format inside CMS-Module-Block #35
Comments
hi @boehsermoe , first of thanks for taking time to help us improve LUYA!
|
Additional to the |
@boehsermoe i just pushed a fix. I am not sure if we have to check for the array type and response as well. Please let me know if this fix your problem. You can install the dev-master by using the |
Your fix works, thank you! |
Problem
Inside a module thats included via cms-block the Url::to function will generate by the cms-page names (pretty url). But only when I pass an array as route it will be correctly, with a string it will generate the "raw" url (not pretty url).
Problem
I include the yii CaptchaWidget inside a cms-module-block and the CaptchaAction inside a controller of this module. The CaptchaAction-Url will generate correctly because the CaptchaWidget add the "v" parameter and pass the route as array. When I call the CaptchaAction-Url I will get an empty image. The result of NavItemModule::getContent will not return direct to the output.
luya-module-cms/src/frontend/controllers/DefaultController.php
Lines 72 to 75 in e514182
Yii::$app->response->format == Response::FORMAT_RAW
and the other formats.The text was updated successfully, but these errors were encountered: