Skip to content
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

Issue when hosted in a subdirectory #271

Open
byanju opened this issue May 7, 2021 · 2 comments
Open

Issue when hosted in a subdirectory #271

byanju opened this issue May 7, 2021 · 2 comments

Comments

@byanju
Copy link

byanju commented May 7, 2021

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.

@saleem-hadad
Copy link
Owner

Can you post some screenshots?

@fbollon
Copy link

fbollon commented Mar 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants