mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Search Query is lost when needing to login #4420
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4420
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?
Originally created by @isleshocky77 on GitHub (Nov 4, 2020).
Issue
If you attempt to go to the search page with a query, and then need to login because you were not yet authenticated, when you are redirected back to the search page, the query has now been lost.
Expected Behavior
The query should be preserved through the login process
Actual Behavior
You are redirected to the search page with an empty query
Possible Fix
Keep the query string in the saved location a user is coming from when going through the login process
Steps to Reproduce
Context
We have Google Chrome and Search keyboard shortcut keys which search SuiteCrm, but if you're not logged in, you need to login and then you lose your search.
Your Environment
SuiteCRM Version used: 7.11.15
Browser name and version: Google Chrome | 84.0.4147.125
Environment name and version (e.g. MySQL, PHP 7): MSQL php7.3
Operating System and version (e.g Ubuntu 16.04): Ubuntu 16.04
@isleshocky77 commented on GitHub (Nov 10, 2020):
@johnM2401 I gave an example url from the public demo site which happens to be using ElasticSearch; however, this bug is not specific to ElasticSearch. The same thing happens when not using ElasticSearch.
@DJUserkent commented on GitHub (Nov 25, 2021):
This is well known.
It is because the search strings in Suite (and SugarCRM before it) are saved in the POST part of the page request - not in the URL itself (which would be a GET type effect.
If you use a browser tool you can see what the parameters are that are passed in the POST.
A work round for fixed search queries that you want to refer back to often:
Eg -this will search Accounts for names like 'Royal' - in quick search
-- /index.php?module=Accounts&action=index&searchFormTab=basic_search&query=true&button=Search&name_basic=royal