You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install two project instances on subdomains, e.g. www.example.com/first and www.example.com/second
Create a CRUD panel with a list view and add filters.
Go to www.example.com/first/admin/your-crud. Select a filter. You will see that the 'admin_yourcrud_list_url' key is set in localStorage to enable the persistent filters.
Go to www.example.com/second/admin/your-crud
Nice, thanks for the detailed explanation @madriegh ! Let's close the issue itself in favor of your PR - #4843 - that way we have the conversation and solution in one spot.
Bug report
What I did
Install two project instances on subdomains, e.g. www.example.com/first and www.example.com/second
Create a CRUD panel with a list view and add filters.
Go to www.example.com/first/admin/your-crud. Select a filter. You will see that the 'admin_yourcrud_list_url' key is set in localStorage to enable the persistent filters.
Go to www.example.com/second/admin/your-crud
What I expected to happen
www.example.com/**second**/admin/your-crud opens
What happened
It will redirect back to the persisted url in the localStorage, which is www.example.com/first/admin/your-crud, the incorrect subdomain.
What I've already tried to fix it
I submitted a PR where I took the full url as key prefix for the localStorage instead of solely the route (#4843)
Is it a bug in the latest version of Backpack? Yes
After I run
composer update backpack/crud
the bug... is it still there? YesBackpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:PHP VERSION:
PHP 8.1.10 (cli) (built: Sep 4 2022 08:41:25) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies
with Xdebug v3.1.4, Copyright (c) 2002-2022, by Derick Rethans
with Zend OPcache v8.1.10, Copyright (c), by Zend Technologies
LARAVEL VERSION:
v9.40.1@9611fdaf2db5759b8299802d7185bcdbee0340bb
BACKPACK VERSION:
5.3.12@883ff76f74bb4cdb70559990026b1130db5234f6
The text was updated successfully, but these errors were encountered: