Relative URLs #5

Closed
opened 2019-03-19 14:24:56 +01:00 by Ghost · 4 comments

I'm a total novice, so I'm probably missing something obvious but is there a way to prepend the base URL when the site is using relative URLs?

I'm a total novice, so I'm probably missing something obvious but is there a way to prepend the base URL when the site is using relative URLs?
Owner

Hi!

Could you provide some examples of what you are trying to achieve please?

Hi! Could you provide some examples of what you are trying to achieve please?
Author

Hi

Thanks for the quick reply.

Currently a generated item link from fanfiction.net or archiveofourown.org for example, would be:

<link>/s/000000/1/Title</link>

<link>/works/000000</link>

So if I'm generating a feed from a page from that site, e.g.:

I'd like to be able to prepend the base URL to get a working link:

<link>https://www.fanfiction.net/s/000000/1/Title</link>

<link>https://archiveofourown.org/works/000000</link>
Hi Thanks for the quick reply. Currently a generated item link from fanfiction.net or archiveofourown.org for example, would be: ``` <link>/s/000000/1/Title</link> <link>/works/000000</link> ``` So if I'm generating a feed from a page from that site, e.g.: - https://www.fanfiction.net/j/0/0/0/ - https://www.fanfiction.net/search/?keywords=whatever&type=story&match=any&formatid=any&sort=0&genreid1=0&genreid2=0&characterid1=0&characterid2=0&characterid3=0&characterid4=0&words=0&ready=1&categoryid=0 - https://archiveofourown.org/tags/whatever - [https://archiveofourown.org/works/search?utf8=✓&work_search[query]=whatever](https://archiveofourown.org/works/search?utf8=✓&work_search[query]=whatever) I'd like to be able to prepend the base URL to get a working link: ``` <link>https://www.fanfiction.net/s/000000/1/Title</link> <link>https://archiveofourown.org/works/000000</link> ```
Owner

Should be fixed by 6dff57aaaa

Can you confirm?

Should be fixed by https://hipstercat.fr/gogs/hipstercat/hrss/commit/6dff57aaaa60b9aa48d86fe0f104849ec4ca6369 Can you confirm?
Author

Yep, looks good.
Thank you, it's much appeciated.

Yep, looks good. Thank you, it's much appeciated.
Ghost closed this issue 2019-03-23 04:53:13 +01:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hipstercat/hrss#5
No description provided.