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

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

Open
paulmcgann opened this issue Apr 19, 2023 · 0 comments
Open

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

paulmcgann opened this issue Apr 19, 2023 · 0 comments

Comments

@paulmcgann
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant