Pricing Blog

dynamic routes ? what can I do?

  • paspom-1375117715903348922

    Pascal

    2 months ago

    I'm totally new to thinking in multiligual terms
    Its really a universe in itself
    So forgive me if I dont see the obvious
    Further, the Routes & Redirect feature looks like chinese syllables to me

    However
    how can I achieve having two different urls for the same page
    Example:
    domain.com/products
    and
    domain.com/produkte

    it is understandable that URL params are not the place to be
    BUT: if we could "reserve" url params domain wide, it could be the place to be though

    so, please help me understand it🙏
  • paspom-1375118020279537704

    Pascal

    2 months ago

    and another thing
    how is it possible to have

    domain.com/en/products
    and
    domain.com/de/produkte
  • andreasmoller-1375133289643507742

    Andreas Møller

    2 months ago

    You can do that with a rewirite, but I would recommend not doing it and just sticking to /products
  • Nobody reads the url except the developer
  • paspom-1375136732336619580

    Pascal

    2 months ago

    really?
    ok I will consider
    so a query parameter is just as legit?
    and cookies are a good alternative too, ensuring proper SSR compatibility?
  • Tod-1375136733850505228

    Tod

    2 months ago

    Great job @Pascal! Your contribution to the Nordcraft Community just made you advance to Community Level 17! 🌲
  • andreasmoller-1375136988553805956

    Andreas Møller

    2 months ago

    Yes it is up to you
  • Each has its own benefits and tradeoffs
  • andreasmoller-1375137387390304409

    Andreas Møller

    2 months ago

    If you are going with the /de/produkte I would recommend moving all the actual logic into a shared component and just have each page use that
  • paspom-1375138058927738902

    Pascal

    2 months ago

    yeah, that it really interesting
    but I rather try to keep it scalable/dynamic
    but awesome – i'll box my way through it
    I'm still extremely unsure how this all will behave with being searchable on google (german product, english product, each on their own)
    but thats not for today

    thank you so far!