Files
smokeping_2.9.0/debian/patches/asset_path_changes
2025-11-07 11:31:06 +00:00

40 lines
2.0 KiB
Plaintext

Description: fix the paths to javascript files
We're using javascript libraries from debian packages instead of the ones
vendored by upstream. Because of this some paths to libraries might differ a
bit.
Some folks are still using URLs of the form /cgi-bin/smokeping.cgi (which was
used up until buster). In order for css and js to be able to load with this
URL, we need to use our top-level alias to retrieve them.
Author: Antoine Beaupré <anarcat@debian.org>
Forwarded: not-needed
Last-Update: 2019-08-25
--- a/etc/basepage.html.dist
+++ b/etc/basepage.html.dist
@@ -4,8 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<META http-equiv="Refresh" content="<##step##>">
<title>SmokePing Latency Page for <##title##></title>
- <link rel="stylesheet" type="text/css" href="css/smokeping-print.css" media="print">
- <link rel="stylesheet" type="text/css" href="css/smokeping-screen.css" media="screen">
+ <link rel="stylesheet" type="text/css" href="/smokeping/css/smokeping-print.css" media="print">
+ <link rel="stylesheet" type="text/css" href="/smokeping/css/smokeping-screen.css" media="screen">
</head>
<body id="body">
@@ -47,10 +47,10 @@
<p><small>Maintained by <a href="mailto:<##contact##>"><##owner##></a></small></p>
</div>
-<script src="js/prototype.js" type="text/javascript"></script>
-<script src="js/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop" type="text/javascript"></script>
-<script src="js/cropper/cropper.js" type="text/javascript"></script>
-<script src="js/smokeping.js" type="text/javascript"></script>
+<script src="/smokeping/js/prototype/prototype.js" type="text/javascript"></script>
+<script src="/smokeping/js/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop" type="text/javascript"></script>
+<script src="/smokeping/js/cropper/cropper.js" type="text/javascript"></script>
+<script src="/smokeping/js/smokeping.js" type="text/javascript"></script>
</body>
</html>