added baseUrl for info link

This commit is contained in:
Florian Scholdei
2019-05-09 15:11:55 +02:00
parent 7db1e4aad0
commit b8d73b91ea
4 changed files with 24 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
import type { Role } from "@scm-manager/ui-types";
type Props = {
baseUrl: string,
role: Role
};
@@ -13,8 +14,8 @@ class PermissionRoleRow extends React.Component<Props> {
}
render() {
const { role } = this.props;
const to = `./${encodeURIComponent(role.name)}/info`;
const { baseUrl, role } = this.props;
const to = `${baseUrl}/${encodeURIComponent(role.name)}/info`;
return (
<tr>
<td>{this.renderLink(to, role.name)}</td>