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

add str replace for external_laravel with theme "elements" #906

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

cleeimpro
Copy link
Contributor

Added another str_replace so that the case for external_laravel with the theme "elements" is also matched.

Without the new str_replace the following is generated in the index.blade.php file:
<elements-api apiDescriptionUrl="../docs/openapi.yaml" ...
With the new str_replace the relative url is replaced with a route:
<elements-api apiDescriptionUrl="{{ route("scribe.openapi") }}" ...

The problem only occurs if laravel.docs_url is changed manually.
Then the openapi.yaml-file cannot be found.

This is not a problem with scalar and rapidoc, as the attribute (e.g. data-url) matches a lowercase ‘url’ correctly.

@shalvah shalvah merged commit 80f2a6d into knuckleswtf:master Nov 5, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants