wintercms / wintercms/winter

Improve deeplinking of tabs when tabs are used within a modal

Open
#1,140 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.5k
Forks
246
Avg merge
19h 2m
Merged PRs (30d)
7

Description

Winter CMS Build

1.2

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Hi,

When using tabs inside relation modal, the hash property doesn't get removed from the URL when the modal get dismissed. Thus, clicking on another record in the list make the modal open to the last tab visited.

Thanks.

Steps to replicate
  1. Configure a relation (in my case a Belongs-To-Many).
  2. Configure a relation controller.
  3. Configure a form with some tabs.
  4. Use the relation modal.
Workaround

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the relation modal flow described in the issue and inspect how the URL hash changes when the modal is dismissed. Done means dismissing the modal removes the previous tab hash, so opening another record does not restore the last visited tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, mariadb, mysql, php
Domain
backend, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.