twbs / twbs/bootstrap

Show collapsed content when linking directly to #fragment

Open
#34,299 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature js v6-revisit
Dominant language
MDX
Stars
175k
Forks
78.6k
Avg merge
7h 19m
Merged PRs (30d)
35

Description

On page above we have an example:
image

by follow a link the element is not showed (notice #collapseExample at URL):

image

We just see a position where this element should be rendered.

Wiki about #fragment: https://en.wikipedia.org/wiki/URL
image

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

Open the linked Bootstrap 5.0 collapse example and reproduce the behavior with #collapseExample in the URL. Investigate how the collapse example handles direct URL fragments; done means the targeted content is shown when loaded directly while the existing collapse example still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.