Skip to content

Commit

Permalink
fix: substr > slice change in mountPath should have been substring
Browse files Browse the repository at this point in the history
  • Loading branch information
qfdk authored Jan 7, 2022
1 parent 797231e commit adc0d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/oidc_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = function getContext(provider) {
}

urlFor(name, opt) {
const mountPath = (this.ctx.req.originalUrl && this.ctx.req.originalUrl.slice(
const mountPath = (this.ctx.req.originalUrl && this.ctx.req.originalUrl.substring(
0,
this.ctx.req.originalUrl.indexOf(this.ctx.request.url),
))
Expand Down

0 comments on commit adc0d63

Please sign in to comment.