Build custom URLs to point to our static files

This commit is contained in:
Frederik Möllers
2025-07-30 02:36:11 +02:00
parent 52b67afd92
commit e259e5e131
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -31,4 +31,10 @@ function compare_bib_entry_by_year_reverse($a, $b)
{
return 0 - compare_bib_entry_by_year($a, $b);
}
// A custom URL builder for the static files we create
define('BIBTEXBROWSER_URL_BUILDER', 'url_builder_static');
function url_builder_static($bibentry) {
return BIBTEXBROWSER_URL.'keys/'.$bibentry->getKey().'.html';
}
?>