This PR contains a fix for when the user has not given Open-WebUI access to the users location. Instead of erroring out and refusing to send the message the variable {{USER_LOCATION}} is now replaced with LOCATION_UNKNOWN. Additionally when the user is using {{USER_LOCATION}} in a slash prompt, an error toast is displayed notifying the user that location data is not available.
Fixed
Fixes an issue where a prompt couldn't be sent if a location variable was present but location access was not allowed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/10634
**Author:** [@sebdanielsson](https://github.com/sebdanielsson)
**Created:** 2/23/2025
**Status:** ✅ Merged
**Merged:** 2/23/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `handle-no-location-access`
---
### 📝 Commits (1)
- [`b00e14e`](https://github.com/open-webui/open-webui/commit/b00e14eb3f009e2445b04dbabb02716cb474bba6) Handle no location permission
### 📊 Changes
**2 files changed** (+17 additions, -8 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/chat/MessageInput/Commands/Prompts.svelte` (+7 -1)
📝 `src/lib/utils/index.ts` (+10 -7)
</details>
### 📄 Description
# Changelog Entry
### Description
This PR contains a fix for when the user has not given Open-WebUI access to the users location. Instead of erroring out and refusing to send the message the variable {{USER_LOCATION}} is now replaced with LOCATION_UNKNOWN. Additionally when the user is using {{USER_LOCATION}} in a slash prompt, an error toast is displayed notifying the user that location data is not available.
### Fixed
- Fixes an issue where a prompt couldn't be sent if a location variable was present but location access was not allowed.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10634
Author: @sebdanielsson
Created: 2/23/2025
Status: ✅ Merged
Merged: 2/23/2025
Merged by: @tjbck
Base:
dev← Head:handle-no-location-access📝 Commits (1)
b00e14eHandle no location permission📊 Changes
2 files changed (+17 additions, -8 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/Commands/Prompts.svelte(+7 -1)📝
src/lib/utils/index.ts(+10 -7)📄 Description
Changelog Entry
Description
This PR contains a fix for when the user has not given Open-WebUI access to the users location. Instead of erroring out and refusing to send the message the variable {{USER_LOCATION}} is now replaced with LOCATION_UNKNOWN. Additionally when the user is using {{USER_LOCATION}} in a slash prompt, an error toast is displayed notifying the user that location data is not available.
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.