Pass around contextUrl correctly

This commit is contained in:
Kyle Shockey
2017-04-13 19:24:02 -07:00
parent fce0916dca
commit 5be31ac909
3 changed files with 4 additions and 4 deletions

View File

@@ -189,9 +189,9 @@ export const executeRequest = (req) => ({fn, specActions, specSelectors}) => {
let { pathName, method } = req
// if url is relative, parseUrl makes it absolute by inferring from `window.location`
let specUrl = parseUrl(specSelectors.url())
req.contextUrl = parseUrl(specSelectors.url()).toString()
let parsedRequest = Object.assign({ contextUrl: specUrl.toString() }, req)
let parsedRequest = Object.assign({}, req)
if ( pathName && method ) {
parsedRequest.operationId = method.toLowerCase() + "-" + pathName
}