link consistency: limit URL tweaking to 'page' nodes
This commit is contained in:
		
							parent
							
								
									4ddddc0933
								
							
						
					
					
						commit
						97e7537c4c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -571,7 +571,7 @@ class NodeView(BaseView): | ||||||
| 
 | 
 | ||||||
|     def getMenuItemUrlForTarget(self, tobj): |     def getMenuItemUrlForTarget(self, tobj): | ||||||
|         for node in tobj.getClients(): |         for node in tobj.getClients(): | ||||||
|             if node.getMenu() == self.menuObject: |             if node.nodeType == 'page' and node.getMenu() == self.menuObject: | ||||||
|                 return absoluteURL(node, self.request) |                 return absoluteURL(node, self.request) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue