Giter VIP home page Giter VIP logo

Comments (10)

SebastianAigner avatar SebastianAigner commented on May 29, 2024 1

Yup, app works fine now that it's a valid Atom feed. As long as the app doesn't crash when someone adds a wrong URL, I'd consider this fixed :) You can rightfully consider anything beyond that out of scope (not sure how many other pages are similarly misconfigured :D)

from twine.

SebastianAigner avatar SebastianAigner commented on May 29, 2024 1

Totally! SebastianAigner/SebastianAigner.github.io@04972a1

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

Identified the cause for this crash, looks like the feed uses relative paths for links rather than providing full links. Since most of the RSS feeds provide full links, the app is optimised towards that, the only time I try to create a "safe" URL with the relative path is for images.

One of the main problems with trying to create this safe URL is we need to have the correct host domain or else these URLs I created with the relative paths won't work. So far I have used the link that is present in the feeds <link> tag as the root because that's a safe assumption to make. But in the feed you have provided even that is relative, so it becomes harder to have a generalised solution for this.

I am aware the app should have shown an error, it's broken in the recent update because of a component change. I have it in my to-do to resolve it in the next update.

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

I usually use the RSS validator from w3 and it recommends the following approach for adding self URLs to the feeds to support vast majority of feed readers.

https://validator.w3.org/feed/docs/warning/RelativeSelf.html

from twine.

SebastianAigner avatar SebastianAigner commented on May 29, 2024

The blog is a default Jekyll installation :)

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

The blog is a default Jekyll installation :)

Yes, I understand. Other than showing an error when adding a feed, I cannot do much in terms of building relative URLs, it needs xml:base which adds a base URL or needs to contain absolute URLs in all links 😅

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

I will spend some time thinking about this issue, it would be great to handle relative links to provide the most optimal experience for users. Let me see what I can do 👀

from twine.

SebastianAigner avatar SebastianAigner commented on May 29, 2024

Btw, you're right: There was a misconfiguration on my Jekyll site, it would seem.

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

Btw, you're right: There was a misconfiguration on my Jekyll site, it would seem.

Got it, the crash is resolved now. Then I will rename this issue and keep it open. I have a prototype for supporting relative URLs, I will explore that option later on.

from twine.

msasikanth avatar msasikanth commented on May 29, 2024

Yup, app works fine now that it's a valid Atom feed. As long as the app doesn't crash when someone adds a wrong URL, I'd consider this fixed :) You can rightfully consider anything beyond that out of scope (not sure how many other pages are similarly misconfigured :D)

Is it possible to link the configuration change you had to make? Would be useful to point to people in case someone else raises an issue with their feed 😅

from twine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.