Skip to content

Commit

Permalink
#66: BaseUrl is set automatically to '/'.
Browse files Browse the repository at this point in the history
  • Loading branch information
espen42 committed Sep 29, 2021
1 parent 43051a6 commit 1c3734e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/data/fetchContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const buildContentFetcher = ({querySelector, variablesGetterSelector, firstMetho
path: contentPathString,
type,
branch: branch as Branch,
baseUrl: null
baseUrl: '/'
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/shared/siteRelative/siteRelative.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { siteName, siteRoot } from '../../enonic-connection-config';

const siteNamePattern = new RegExp('^/' + siteName);
const siteNamePattern = new RegExp('^/' + siteName + "/");
const siteRootPattern = new RegExp('^/' + siteRoot);

export const getSiteRelativePath = _path => _path.replace(siteNamePattern, '')
Expand Down

0 comments on commit 1c3734e

Please sign in to comment.