mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00

The special URL links (help://man) and the application opening links now work on the man page website. While the page links are translated correctly, the application launch can't be implemented. For this reason, an explanatory error page is shown instead.
5 lines
211 B
Lua
5 lines
211 B
Lua
function Link(el)
|
|
el.target = string.gsub(el.target, "file:///bin/.*", "../cant-run-application.html")
|
|
el.target = string.gsub(el.target, "help://man/([^/]*)/(.*)", "../man%1/%2.html")
|
|
return el
|
|
end
|