@mxdevito thank you for your message!
Please wait a reply from @Sanjeev , they will reply asap.
https://forums.uvdesk.com/topic/2000/disable-knowledge-base-permanently-and-redirect-to-customer-login
Solved require login
-
Hi, why am i getting error 500 after this:
SSanjeev DEVELOPER UVDESK STAFF MOD 21 Oct 2021, 10:33
As we understand some of the user don't want to show knowlegebase to their customer instead they want to redirect customer to directly into customer login page.For this you need to make a slight changes in your code.
Please follow the steps given below:
- Locate path in your project.
vendor/uvdesk/support-center-bundle/resources/config/routes/public.yaml
Open public.yaml file replace line no. 3 (controller: Webkul\UVDesk\SupportCenterBundle\Controller\Website::home) by:
controller: Webkul\UVDesk\SupportCenterBundle\Controller\Customer::login
Finally run command php bin/console c:c from project root directory.
Hope it will help someone
Thanks
- Locate path in your project.
-
Please enable dev mode first to check where you are getting this error and need to enable from .env file make APP_ENV: dev
- Go to file public.yaml file from the given location in your project folder.
vendor/uvdesk/support-center-bundle/resources/config/routes/public.yaml- Open public.yaml file replace line no. 3 by below line:
controller: Webkul\UVDesk\SupportCenterBundle\Controller\Customer::login- Finally run command php bin/console c:c from project root directory.
-
@mxdevito thank you for your message!
Please wait a reply from @Sanjeev , they will reply asap.
https://forums.uvdesk.com/topic/2000/disable-knowledge-base-permanently-and-redirect-to-customer-login -
@mxdevito please try to debug the error:
check your server error log messages and if any error please report here. Be sure to hide personal or private informations.You can also activate the dev mode in UVdesk and try to load the page that give 500 error, an error should be print in the screen, reporting the error here can help developer to understand what can be wrong.
-
Please enable dev mode first to check where you are getting this error and need to enable from .env file make APP_ENV: dev
- Go to file public.yaml file from the given location in your project folder.
vendor/uvdesk/support-center-bundle/resources/config/routes/public.yaml- Open public.yaml file replace line no. 3 by below line:
controller: Webkul\UVDesk\SupportCenterBundle\Controller\Customer::login- Finally run command php bin/console c:c from project root directory.
-
peopleinside 7 Jan 2022, 15:41
-
-
@Sanjeev but what if someone wants to redirect to ticket creation page instead of login then instead of Customer ::login what would be required to be changed in the code of public.yaml
-
what if someone wants to redirect to ticket creation page instead of login then instead of Customer ::login what would be required to be changed in the code of public.yaml
Please follow the below steps:
- Go to file public.yaml file from the given location in your project folder.
vendor/uvdesk/support-center-bundle/resources/config/routes/public.yaml
- Open public.yaml file and replace the line no 3 by below line:
controller: Webkul\UVDesk\SupportCenterBundle\Controller\Ticket::ticketAdd
- Finally run the below command for clear cache on your project root directory:
$ php bin/console c:c
I hope this solution works for you to the redirect on ticket create page on home page.
Thanks and Regards
Uvdesk Team