Skip to content

Commit

Permalink
fixing uid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arunpilli21 committed Aug 11, 2021
1 parent 02bd0e2 commit 445a64d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/nodebb.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ function proxyObject() {
let urlParam = req.originalUrl.replace('/discussion', '');
logger.info({"message": `request comming from ${req.originalUrl}`})
let query = require('url').parse(req.url).query;
if (query) {
console.log("query======>",query)
if (query && !query.includes('_uid')) {
return require('url').parse(nodebbServiceUrl+ urlParam + '?' + query).path
} else {
const incomingUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
Expand Down

0 comments on commit 445a64d

Please sign in to comment.