Data = new FormData();
                      formData.append('feature_id', featureId);
                      formData.append('vote', isUpvote ? 'up' : 'down');

                      // Use absolute URL path to ensure proper routing
                      const voteUrl = '{% url "feature_vote" %}' || '/api/features/vote/';

                      console.log('Submitting vote to:', voteUrl);

                      const response = await fetch(voteUrl, {
                          method: 'POST',
               