mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Handle httpAdminRoot missing ending slash with login strategy
Fixes #2473
This commit is contained in:
		| @@ -100,7 +100,10 @@ function login(req,res) { | ||||
|             } | ||||
|         } else if (mergedAdminAuth.type === "strategy") { | ||||
|  | ||||
|             var urlPrefix = (settings.httpAdminRoot==='/')?"":settings.httpAdminRoot; | ||||
|             var urlPrefix = (settings.httpAdminRoot||"").replace(/\/$/,""); | ||||
|             if (urlPrefix.length > 0) { | ||||
|                 urlPrefix += "/"; | ||||
|             } | ||||
|             response = { | ||||
|                 "type":"strategy", | ||||
|                 "prompts":[{type:"button",label:mergedAdminAuth.strategy.label, url: urlPrefix + "auth/strategy"}] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user