Skip to content

Commit

Permalink
Fixes #626 (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll authored Feb 13, 2019
1 parent b9d4534 commit da71306
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/src/app/ud-dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ export default class UdDashboard extends React.Component {
var dynamicPages = this.state.dashboard.pages.map(function(x) {
if (!x.dynamic) return null;

if (!x.url.startsWith("/")) {
x.url = "/" + x.url;
}

return <Route path={window.baseUrl + x.url} render={props => (
<UdPage id={x.id} dynamic={true} {...props} autoRefresh={x.autoRefresh} refreshInterval={x.refreshInterval} key={props.location.key}/>
)} />
Expand Down

0 comments on commit da71306

Please sign in to comment.