- Issue created by @Rajab Natshah
- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:40pm 13 March 2024
Hitting Not Found
The requested URL was not found on this server.
on local development, and multilingual selection is using the URL
Given that OpenAI was installed in a Drupal site
And the OpenAI API Key was not sat yet
And the following error message will show on all pagesError message
You have not provided an OpenAI API key yet. This is required for its functionality to work. Please obtain an API key from your OpenAI account and add it to the OpenAI settings configuration here.When I click on the
"OpenAI settings configuration here"
link in the message
And the site is on sub directory, or other default languages in the URL
Then the"Not Found - The requested URL was not found on this server."
onKernelRequest
: add $event->getRequest()->getSchemeAndHttpHost() . $event->getRequest()->getBaseUrl() . '/admin/config/openai/settings'
openai_requirements
: Add \Drupal::service('router.request_context')->getCompleteBaseUrl() . '/admin/config/openai/settings'
Needs review
1.0
Code