Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to the corresponding hash link when switching languages #566

Open
ulivz opened this issue Jun 10, 2018 · 4 comments
Open

Jump to the corresponding hash link when switching languages #566

ulivz opened this issue Jun 10, 2018 · 4 comments
Assignees
Labels
contribution welcome Contributions welcome good first issue Good for newcomers Hacktoberfest Good issue for Hacktoberfest challenge status: community assigned Community assigned type: feature request Request to add a new feature

Comments

@ulivz
Copy link
Member

ulivz commented Jun 10, 2018

Contribution welcome!

@ulivz ulivz added type: feature request Request to add a new feature contribution welcome Contributions welcome labels Jun 10, 2018
@rodrigo-puente
Copy link

Could you explain this a little bit more? I'd like to help on this one.

@ulivz ulivz added the TODO label Aug 20, 2018
@stranger26
Copy link
Contributor

I think this refers to assigning the # hash link to the url when switching language so that it will smooth scroll down. Currently, if you do abc.xyz/en#title, and switch to french, it will become abc.xyz/fr only. (Without the # hash link)
However I do notice that the hash links are translated too. Does it mean that the implementation will keep a counter on how far down the existing hash link is and assign a same 'distance' link in the translated version? (Assuming translated text fully correspond with original text)

Also, would love to contrib on this. @ulivz, any other ways you had in mind?

@kefranabg kefranabg removed the TODO label Aug 12, 2019
@kefranabg kefranabg added the good first issue Good for newcomers label Sep 20, 2019
@kefranabg kefranabg added the Hacktoberfest Good issue for Hacktoberfest challenge label Sep 30, 2019
@lacexd
Copy link

lacexd commented Oct 2, 2019

I'd love to work on this one!

@kefranabg kefranabg added the status: community assigned Community assigned label Oct 2, 2019
lacexd pushed a commit to lacexd/vuepress that referenced this issue Oct 6, 2019
@ThaddeusJiang
Copy link

ThaddeusJiang commented Apr 1, 2020

Because the anchor is different between two languages, there is no way to match the anchor.
I view this is not easy issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome Contributions welcome good first issue Good for newcomers Hacktoberfest Good issue for Hacktoberfest challenge status: community assigned Community assigned type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

6 participants