Skip to content

Ability to extending routing to include language-market stem #926

@paulmcgann

Description

@paulmcgann

Hi,

We are working on a poc for adding the market to the url of the foundation site to include the market along with the language segment for example:

https://www.foundtion.com/en-gb/page-one
https://www.foundtion.com/en-de/page-one
https://www.foundtion.com/en-us/page-one

We have forked the repository and created a sample implementation, the piece we are struggling with is when we use the market switcher in the site this is causing issues, where is is retrieving a 3 letter country code vs a 2 letter country code.

You can see the approach we have taken here:
https://github.com/paulmcgann/Foundation/tree/routing

We have added steps to the pipeline and added some initialization you can see this in the following folder:
https://github.com/paulmcgann/Foundation/tree/routing/src/Foundation/Infrastructure/Routing

Also we have modified the startup to add the steps into the pipeline here:
https://github.com/paulmcgann/Foundation/blob/routing/src/Foundation/Startup.cs#L240-L242

Would someone be able to review and maybe suggest some improvements, as we feel we are not far away from a working solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions