Router with absolute (not relative) links

Hello,
New to F7 here,
I want the router to be able to deal with absolute links as well as relative links. For example:
http://localhost/whatever
and
/whatever
should prompt the router the same. Is there a way to do that?

Just developed a simple solution:
$(document).on(‘click’, ‘a[href^="’+site_url+’"]’, function (e) {
abs_link = new URL ($(this).attr(‘href’));
app.views.main.router.navigate(abs_link.pathname);
});

1 Like