Skip to content

bug: manage relative URL #25

Closed
Closed
@creekorful

Description

I've noticed a little bug while browsing my own RSS sources: https://blog.creekorful.com/index.xml

As you can see, the link are relative and therefore terminews is unable to open them. I think we should append the host to the link if the link is relative.

I'm be willing to do the PR, of course.

The problem is relative to this specific part of code:

CurrentContent, _ = GetContent(event.Url)

I've take a lot at the source code, and I have some suggestions to refactor the code a bit if you consider it! Getting rid of the global variables and make the function more state-less to ease maintenance. Would your consider it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions