laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.84k stars 645 forks source link

Laravel Horizon in sub-folder route issue #1358

Closed mohitsimp closed 8 months ago

mohitsimp commented 8 months ago

Horizon Version

5.21

Laravel Version

8.83.27

PHP Version

8.0.30

Redis Driver

Predis

Redis Version

7.2.1

Database Driver & Version

MySQl 8

Description

I have installed laravel into my cpanel subfolder

Subfolder Url. : https://mydomina.com/staging/

I have installed laravel/horizon in the same path with composer but APIS and all working is fine but when we redirect to any other URL it will not work

if I want to redirect Batches it will auto redirect.to https://mydomina.com/horizon/batches instead of https://mydomina.com/staging/horizon/batches

Steps To Reproduce

Install Laravel and horizon into subfolder and run with subfolder URL in browser u will get error

driesvints commented 8 months ago

We don't support Laravel in subdirectories sorry. You should not attempt to do this. See https://laravel.com/docs/10.x/installation#directory-configuration