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 with directus installed in sub directory #31

Open
jbogdani opened this issue Aug 29, 2023 · 0 comments
Open

Issue with directus installed in sub directory #31

jbogdani opened this issue Aug 29, 2023 · 0 comments

Comments

@jbogdani
Copy link
Contributor

When Directus is not installed in the root of the domain but in a sub directory, such as https://example.com/directus the plugin fails to initialise due to a (I believe) typo.

It is looking for files in https://example.com/directusassets/ directory that does not exists and is the result of a missing trailing slash in:
https://github.com/directus/gatsby-source-directus/blob/bfd4f40136dc760a8a9239f19bc691bcf4fb4b40/gatsby-node.js#L93C11-L93C18

In my opinion the line should be (note the slash before assets, that is missing in the main code):

const fileUrl = `${plugin.url}/assets/${file.id}`;

Thank you

rijkvanzanten pushed a commit that referenced this issue Sep 19, 2023
* Solves #31

* A cleaner solution to solve #31
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

1 participant