w3c / jlreq

Text Layout Requirements for Japanese
https://w3c.github.io/jlreq/
Other
101 stars 17 forks source link

Update URL when the language is switched #236

Closed kojiishi closed 6 months ago

kojiishi commented 3 years ago

Often I find contents, then switch language, copy URL, and paste to somewhere, without noticing that the URL may show different language than I'm seeing.

Great if language switching can update the ?lang=xx part of the URL.

xfq commented 3 years ago

I thought about creating a PR about this before the publication of the current /TR version, but finally did not submit the PR, since I can see both advantages and disadvantages of it.

The advantage is that sharing it with others can reproduce the current state (language) of the document. The disadvantage is that the user (at least for me) may want a "cleaner" URL and doesn't want to get these statuses. Although the parameter can be removed manually (just like the UTM parameters, although the purpose is different), it is a bit troublesome.

That said, it's not a strong opinion and I won't object if this feature is added.

kojiishi commented 3 years ago

@xfq Thanks, I agree it has both pros and cons. I think the advantage is bigger, but it is understandable if others think differently.

I can create a PR, and I'll let reviewers to decide which experience they would like to take.