fix (navigation): navigation was braking when a file had a pound in its name

This commit is contained in:
Mickael KERJEAN
2019-03-15 18:01:55 +11:00
parent fb829c8c3a
commit cb9f3badc7
3 changed files with 6 additions and 5 deletions

View File

@ -136,7 +136,7 @@ export class PathElementWrapper extends React.Component {
return (
<li className={className}>
<NgIf cond={this.props.isLast === false}>
<Link to={"/files" + (this.props.path.full || "/") + location.search} className="label">
<Link to={"/files" + ((this.props.path.full || "").replace(/#/g, "%23") || "/") + location.search} className="label">
<NgIf cond={this.props.path.minify !== true}>
{this.limitSize(this.props.path.label)}
</NgIf>