Coder Social home page Coder Social logo

Separate language from path in hash about asknot HOT 3 CLOSED

jdm avatar jdm commented on August 18, 2024
Separate language from path in hash

from asknot.

Comments (3)

aleksandrs-ledovskis avatar aleksandrs-ledovskis commented on August 18, 2024

That's a valid point you are making.

However there are also some different approaches that might work here. What solution should we take?

  1. Remove locale prefix from location hash and convert it to query parameter.
    http://whatcanidoformozilla.org/#!/en/proglang/rust becomes
    http://whatcanidoformozilla.org/?l=en#!/proglang/rust. Please correct me, if I had misunderstood your proposal.
  2. Make first parameter of location hash optional.
    http://whatcanidoformozilla.org/#!/proglang/rust becomes
    http://whatcanidoformozilla.org/#!/en/proglang/rust after initial page load for en locale browser.
  3. Add two permalink-links on page. One would be for "generic" permalink (w/o locale string), other for "localized" (w/ currently visible locale).

from asknot.

jdm avatar jdm commented on August 18, 2024

I think I like option 1 here.

from asknot.

jdm avatar jdm commented on August 18, 2024

I think I would also not append the language query parameter until the language is explicitly changed from the dropdown, too.

from asknot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.