Skip to content

Commit 0d21ffa

Browse files
authored
Merge pull request #28 from uniquelyparticular/development
fix: changed store_code to come after index.php
2 parents f3ead51 + 55a6f3c commit 0d21ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export class createClient {
3636
}
3737
} = this;
3838

39-
const version: string = store_code ? `/${store_code}` : '';
40-
const uri: string = `${store_url}${version}/index.php/${removeLeadingSlash(
39+
const version: string = store_code ? `${store_code}/` : '';
40+
const uri: string = `${store_url}/index.php/${version}${removeLeadingSlash(
4141
path
4242
)}`;
4343
// console.log('uri', uri);

0 commit comments

Comments
 (0)