Incorrect redirect on succesful login #11
	
		Labels
		
	
	
	
	No labels
	
		
			
	
	bug
		
			discussion
		
			duplicate
		
			enhancement
		
			help wanted
		
			invalid
		
			question
		
			suggestion
		
			tracker
		
			ui/ux
		
			wontfix
		
		
	
		No milestone
		
			
		
	
	No project
	
		
	
	
	
	
		No assignees
		
	
	
		
			
		
	
	
	
		3 participants
	
	
		
		
	Notifications
	
		
	
	
	
		
	
	
	Due date
No due date set.
	
		Dependencies
		
		
	
	
	No dependencies set.
		Reference: cadence/Carbon#11
		
	
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	
	No description provided.
		
		Delete branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finded out that login form redirecting user incorrectly after successful login if current hostname have third-level domain such as mine: carbon.thecore.city.
The reason is
location.assign('./')not redirecting user to the parent directory.On the carbon.chat it works fine:
But on the carbon.thecore.city it's just redirecting to the same path.
Maybe it's better to use
location.assign('..')to move to the parent section.Oh, wait. The reason is the last
/in the path. If I'll try to log in using/loginthen I'll be successfully redirected to Carbon root directory. But there is automatic redirect from/loginto/login/on my webserver.The same situation on carbon.chat/login/
Fixed this in
f1b75f5e10Not entirely fixed - we need to ensure that we go to
/login/(with trailing slash) here: https://gitdab.com/cadence/Carbon/src/branch/princess/src/js/main.js#L8Addressed that in
9e71336.