-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Livewire URL not function #15444
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
I went into the LivewireSerivceProvider.php and changed "config('livewire.url_prefix') to the prefix I wanted in the Update Route and it started working. I am assuming there is a problem with the communication. Not sure how the directory link worked though. |
Hi @Dustin-Moon, I'm also confused about how it worked by going directly to I opened the PR that introduced that config option and was addressing another reported issue importing but that user was running apache. I wonder if IIS is doing something different here? |
Don't get me wrong here, I very well could have done something wrong in the installation or one of my files is running weirdly on IIS. I am the new guy at work so the internal IIS site that we are hosting has been on the same computer for 10 years or so. God knows what has been installed or altered on the IIS server. |
@Dustin-Moon can you explain the change that worked here? Am I understanding it right? - return Route::post('/' . config('livewire.url_prefix') . '/livewire/update', $handle);
+ return Route::post('/support/snipeit/livewire/update', $handle); |
|
That is strange since the result of hardcoding it like you did and the existing You added the |
Yes, I was trying to make the line bold for visual purposes in the post. |
It looks like there are a few upstream mentions of this issue or similar issues. I'm going to drop them here for future reference:
I'll do a little more digging and hopefully submit a fix to Livewire itself. (It's interesting that swapping out the |
Debug mode
Describe the bug
I have Snipe-it inside of a subdirectory. I have followed the subdirectory steps (https://snipe-it.readme.io/docs/subdirectories#add-the-livewire-config-variable), and I'm having unusual behavior still with livewire. I have snipe-it at (C:\inetpub\wwwroot\support\snipe-it) and have it where when I go to (http://examplesitename/support/snipeit) I am able to access the public page. But when importing I am met with 404 errors. I have (LIVEWIRE_URL_PREFIX=/support/snipeit) and the htaccess file too, and I am still getting the 404 errors.
But when I got to (http://examplesitename/support/snipe-it/public/import) I can import and delete imports with no problem. Weirdly enough it POST 200 from (http://examplesitename/support/snipeit/livewire/update) instead of the directory link that I was on. Not sure if I am missing something here.
Reproduction steps
Expected behavior
Import from Virtual Directory/Application site link rather than directory site link.
Screenshots
Snipe-IT Version
7.0.11
Operating System
Windows
Web Server
IIS
PHP Version
8.2.15
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
The text was updated successfully, but these errors were encountered: