A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: issue if book href are absolute url and not relative to server (#741)

## Summary

fixing issue if book href are absolute url and not relative to the
server

## Additional Context

* Fixes
https://github.com/crosspoint-reader/crosspoint-reader/issues/632
* https://github.com/harshit181/RSSPub/issues/43

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**< PARTIALLY>**_

authored by

harshit181 and committed by
GitHub
14ef6256 64d161e8

+4
+4
src/util/UrlUtils.cpp
··· 25 25 } 26 26 27 27 std::string buildUrl(const std::string& serverUrl, const std::string& path) { 28 + // If path is already an absolute URL (has protocol), use it directly 29 + if (path.find("://") != std::string::npos) { 30 + return path; 31 + } 28 32 const std::string urlWithProtocol = ensureProtocol(serverUrl); 29 33 if (path.empty()) { 30 34 return urlWithProtocol;