FFF has code to normalize and internalize relative story links to chapters, the normalize_text_links and internalize_text_links options.
They are on by default, but we don't have a dedicated normalize_chapterurl() in adapter_royalroadcom, so if the author's URLs don't exactly match the chapter URLs, it won't work. I would guess there's a good chance adding an appropriate normalize_chapterurl() to adapter_royalroadcom may be necessary.
I don't read anything from RoyalRoad, so I don't know anything off hand about their linking. I'd need to see the story.
fix_relative_text_links is related, but also kind of the opposite--it changes relative links to absolute links so they work when not on the same site. It's done before normalize_text_links & internalize_text_links (so matching chapter links can still be inernalized) and is also on by default. I'm honestly not sure what it would do to #anchor only links within a page.
|