Adding fallback route in case of a non valid route
see https://github.com/friendica/friendica/issues/6918#issuecomment-491009954
This commit is contained in:
		
					parent
					
						
							
								59bbb1ac99
							
						
					
				
			
			
				commit
				
					
						3015135750
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -121,6 +121,9 @@ function notifications_content(App $a)
 | 
			
		|||
	} elseif (($a->argc > 1) && ($a->argv[1] == 'home')) {
 | 
			
		||||
		$notif_header = L10n::t('Home Notifications');
 | 
			
		||||
		$notifs = $nm->homeNotifs($show, $startrec, $perpage);
 | 
			
		||||
	// fallback - redirect to main page
 | 
			
		||||
	} else {
 | 
			
		||||
		$a->internalRedirect('notifications');
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Set the pager
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue