Skip to content

London | 26-Jul-SDC | Roman Sanaye | Sprint 1|Purple-forest Fix Hashtag Links - #265

Open
RomanSanaye wants to merge 1 commit into
CodeYourFuture:mainfrom
RomanSanaye:purple-forest-hashtag-does-not-work
Open

RomanSanaye wants to merge 1 commit into
CodeYourFuture:mainfrom
RomanSanaye:purple-forest-hashtag-does-not-work

Conversation

@RomanSanaye

Copy link
Copy Markdown

Task code: CYF-1169

What does this PR do?

  • Fixes hashtag links when a hashtag is followed by other text.
  • Updates the hashtag regex to match only valid hashtag characters.
  • Prevents spaces and trailing text from being included in the hashtag URL.

What was the bug?

A Bloom such as:

Let's get some #SwizBiz love!!

was incorrectly creating a link to:

/hashtag/SwizBiz%20love!!

instead of:

/hashtag/SwizBiz

How was it tested?

  • Tested #SwizBiz at the end of a Bloom.
  • Tested #SwizBiz followed by additional text.
  • Confirmed both cases link to /hashtag/SwizBiz.
  • Confirmed the hashtag page displays the expected Blooms.

Self-checklist

  • I have tested my changes.
  • I have checked that my changes follow the existing code style.
  • I have completed the required task.
  • I have removed unnecessary code/comments.
  • I am ready for review.

@RomanSanaye RomanSanaye added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant