larecipe icon indicating copy to clipboard operation
larecipe copied to clipboard

Issue when hosted in a subdirectory

Open byanju opened this issue 3 years ago • 2 comments

If the base URL is

baseURL/subdiretory - a location in NGINX

Then the links redirects to baseURL/docs/... whereas the link should be baseURL/subdirectory/docs/...

in .env file, I have already set APP_URL to baseURL/subdirectory.

Is there any way to reset base directory in a subdirectory so that the links are generated correctly. Thanks in advance.

byanju avatar May 07 '21 10:05 byanju

Can you post some screenshots?

saleem-hadad avatar Oct 16 '21 08:10 saleem-hadad

First of all, congratulations for this excellent package !

However, same issue for me with Apache server and multiple Laravel applications on the same server as below

/ApacheDocumentRoot/application1 /application2 /application3

the base url of the application1 is https://myDomain/application1 as defined in the .env file

the link generated in the sidebar for application1 documentation is :

https://myDomain/docs/1.0/overview

instead of

https://myDomain/application1/docs/1.0/overview

I do not encounter this problem elsewhere I'm interested if there is a way to correct these links in the sidebar Thanks

fbollon avatar Mar 29 '22 12:03 fbollon