mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-09 07:17:16 -05:00
[PR #944] [CLOSED] api/facebook: handle URLs with query parameters in share links #1289
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/944
Author: @Aholicknight
Created: 11/26/2024
Status: ❌ Closed
Base:
main← Head:fix-facebook-share-urls📝 Commits (1)
943fe79api/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.jsfile 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: Added logic to strip query parameters from URLs by creating aURLobject and reconstructing the URL without the query string.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.