[PR #944] [CLOSED] api/facebook: handle URLs with query parameters in share links #1289

Closed
opened 2025-11-09 10:09:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/944
Author: @Aholicknight
Created: 11/26/2024
Status: Closed

Base: mainHead: fix-facebook-share-urls


📝 Commits (1)

  • 943fe79 api/facebook: handle URLs with query parameters in share links

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 api/src/processing/services/facebook.js (+7 -1)

📄 Description

This pull request is related to the issue #917

This pull request includes a change to the api/src/processing/services/facebook.js file to handle URLs with query parameters more effectively. The most important change is the addition of a block that processes URLs to remove query parameters, ensuring the URL only includes the origin and pathname.

Enhancements to URL handling:


🔄 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/imputnet/cobalt/pull/944 **Author:** [@Aholicknight](https://github.com/Aholicknight) **Created:** 11/26/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-facebook-share-urls` --- ### 📝 Commits (1) - [`943fe79`](https://github.com/imputnet/cobalt/commit/943fe7991ea8057135529d610c4ab86705328920) api/facebook: handle URLs with query parameters in share links ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/facebook.js` (+7 -1) </details> ### 📄 Description This pull request is related to the issue #917 This pull request includes a change to the `api/src/processing/services/facebook.js` file to handle URLs with query parameters more effectively. The most important change is the addition of a block that processes URLs to remove query parameters, ensuring the URL only includes the origin and pathname. Enhancements to URL handling: * [`api/src/processing/services/facebook.js`](diffhunk://#diff-e48e55647a3551a441c11add71a5bcae91fbc97f0d2cd1ea4a82f326931c91d8R32-R37): Added logic to strip query parameters from URLs by creating a `URL` object and reconstructing the URL without the query string. --- <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 2025-11-09 10:09:55 -06:00
Sign in to join this conversation.