-
Notifications
You must be signed in to change notification settings - Fork 635
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
Unable to get the siteUrl from a Console Request #3055
Comments
What is your primary site’s Base URL set to? Sounds like it might just be set to |
I have added this to my init function of the plugin:
When I go to my dashboard in the browser I got: The dashboard value is right but when I go to my console and try to run the craft command I got this: My primary site has "@web/" in the baseUrl Best, |
If I set the my baseUrl to http://craft3.test it works. So the |
Correct, |
Description
I'm unable to the get the baseSite url within a console request. This stops working in v3.0.13
Steps to reproduce
$baseUrl = UrlHelper::baseSiteUrl();
in a console requestAdditional info
The text was updated successfully, but these errors were encountered: