]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Channels: possibly fix a bug when clicking on a channel (loading wrong URL).
authorBram Matthys <redacted>
Fri, 28 Apr 2023 10:38:12 +0000 (12:38 +0200)
committerBram Matthys <redacted>
Fri, 28 Apr 2023 10:40:07 +0000 (12:40 +0200)
Reported by Nini.

Only happens when base_url was / and then due to my wrongly added /
it would result in a href to //channels/ etc... which is misinterpreted
as https://channels/details.php..etc...

channels/index.php

index e4fd4f2f07518d31cb945afc1df03663a5664379..2d086397f64462c4d28b8ec31324d75456d5a907 100644 (file)
@@ -79,7 +79,7 @@ function show_channel(e)
        /* For all the other columns we show the view screen */
        var data = data_list_table.row(e).data();
        channel = data['Name'];
-       window.location = '<?php echo get_config('base_url'); ?>/channels/details.php?chan=' +
+       window.location = '<?php echo get_config('base_url'); ?>channels/details.php?chan=' +
                          encodeURIComponent(channel);
        // not working: still expands on mobile: e.stopImmediatePropagation();
        return true;