There is Session functionality in the system, so you could write an extension that puts the page url to the session… e.g.
Event::listen('main.page.beforeRenderPage', function($page){
// your code here, then
Session::put('breadcrumbs', $breadcrumbTrail);
});