[PR #10634] [MERGED] fix: Handle no location permission #22572

Closed
opened 2026-04-20 04:14:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: handle-no-location-access


📝 Commits (1)

  • b00e14e Handle 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

  • 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>
GiteaMirror added the pull-request label 2026-04-20 04:14:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#22572