Views exposed form action url

Created on 9 February 2022, almost 3 years ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

I have noticed that Chrome flags some of my exposed form fields as unsecure due to their action-attribute URL being just HTTP, instead of HTTPS. My site is using HTTPS so it's strange why the action of the form would be HTTP.
This problem only appears on Views exposed forms which are used by TVI.

Steps to reproduce

Go to a term page that is using TVI and configure the view to have some exposed filter. Check the 'action' attribute of the exposed form and see if it is HTTP or HTTPS.

Proposed resolution

I found that the issue appeared after https://www.drupal.org/project/tvi/issues/3216975 where the override url was added. I would suggest that we check if the issue of that ticket is still valid or could we remove the override url and just use the Views logic for setting the action URL. Reverting the addition of override_url seems to fix the issue for me since then the action url is set as a path by Views logic.

If that issue is still valid, then maybe we could change the override url to be the path instead of the absolute url. This would fix the possible issues with HTTP or HTTPS and it also seems to be how the action URL is shown in normal Views exposed forms like I mentioned above.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇫🇮Finland thatguy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada mikeohara Moncton, NB

    Closing as outdated, and the 8.x-1.x branch will be considered minimally maintained and soon to be deprecated.

    If there is value for the 2.x branch, please re-open and provide feedback for improvement.

Production build 0.71.5 2024