hashgraph / hashgraph/hedera-docs

Redirect to the corresponding language tab is not working

Open
#121 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
MDX
Stars
10
Forks
49
Avg merge
19h 49m
Merged PRs (30d)
17

Description

### Description

We’ve identified an issue when trying to access a specific code block in the documentation. Appending the #tab-java suffix to the URL is supposed to open the Java code snippet, but instead, it incorrectly displays the Go snippet in my case.

### Steps to reproduce

1. Visit: https://docs.hedera.com/hedera/sdks-and-apis/sdks/token-service/token-id
2. Switch between the JavaScript, Java, and Go tabs
3. Open a new browser tab and go directly to: https://docs.hedera.com/hedera/sdks-and-apis/sdks/token-service/token-id#tab-java

I’ve confirmed that the first time you access the URL with a fresh browser (no cache or stored data), the redirection to the correct tab works as expected. However, after refreshing the page a couple of times, it stops working and defaults to the Go tab. It might be related to something stored in localStorage or cookies.

### Additional context

_No response_

### Hedera network

_No response_

### Version

v01.0

### Operating system

macOS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.