Fix /api/v1/tags/:id route constraints (#18854)
The constraint was applied prior to decoding, and rejected anything containing the '%' character, which would be used for anything with non-ASCII unicode characters.
This commit is contained in:
		
					parent
					
						
							
								f8b3e36929
							
						
					
				
			
			
				commit
				
					
						726931fe4a
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -530,7 +530,7 @@ Rails.application.routes.draw do
 | 
			
		|||
        resource :note, only: :create, controller: 'accounts/notes'
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      resources :tags, only: [:show], constraints: { id: /#{Tag::HASHTAG_NAME_RE}/ } do
 | 
			
		||||
      resources :tags, only: [:show] do
 | 
			
		||||
        member do
 | 
			
		||||
          post :follow
 | 
			
		||||
          post :unfollow
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue