Skip to content
Snippets Groups Projects

Add check to preprocess file link hook to not run on webforms

Merged Michael Lee requested to merge lee5151 into main

This is a bugfix for the hook introduced in !159 (merged). This hook runs when files are uploaded to webforms which was something I didn't consider. My guess is that since files uploaded in webforms are stored privately, the hook isn't able to grab the string like it would with a publicly stored file. This creates an issue with appending (opens in a new window) to the filename. Since this feature isn't necessary in webforms, I've added a check to skip the hook if the user is currently on a webform.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading