Skip to content

Commit

Permalink
(fix) Make help button dynamic and open in a new tab with port 81
Browse files Browse the repository at this point in the history
  • Loading branch information
BisratB-ICAP committed Sep 4, 2024
1 parent a945c1f commit 9fe073b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/navbar/help-button.component.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect } from "react";
import React from "react";
import { Switcher } from "@carbon/react";
import { Help } from "@carbon/react/icons";
import styles from "./navbar.scss";

const HelpMenu: React.FC = () => {
const currentUrl = `localhost:81/doku.php?id=start`;
const currentUrl = `${window.location.protocol}//${window.location.hostname}:81/doku.php?id=start`;

return (
<div className={styles.switcherContainer}>
Expand Down

0 comments on commit 9fe073b

Please sign in to comment.