fix base_path more thoroughly
This commit is contained in:
		
							parent
							
								
									d9d94013de
								
							
						
					
					
						commit
						1494d764c1
					
				| @ -50,9 +50,9 @@ | |||||||
|     , posts: { collated: view.desi.collated } |     , posts: { collated: view.desi.collated } | ||||||
|     , urls: { |     , urls: { | ||||||
|         base_url: view.env.base_url |         base_url: view.env.base_url | ||||||
|         // /something -> good (leading slash)
 |         // /something/ -> good (leading and trailing slash)
 | ||||||
|         // / -> bad (trailing slash)
 |         // / -> bad good (leading and trailing slash)
 | ||||||
|       , base_path: view.env.base_path.replace(/^\/$/, '') |       , base_path: (view.env.base_path + '/').replace('//', '/') | ||||||
|       } |       } | ||||||
|     , data: { |     , data: { | ||||||
|         author: { |         author: { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user