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

Language routing does not seem to be working (404 error) #29

Closed
itcotta opened this issue Feb 24, 2022 · 0 comments · Fixed by #36
Closed

Language routing does not seem to be working (404 error) #29

itcotta opened this issue Feb 24, 2022 · 0 comments · Fixed by #36

Comments

@itcotta
Copy link

itcotta commented Feb 24, 2022

Hi,
It seems like the language routing to the sitemaps.xml file is not working at all.
I've loaded the nuget packages into my project and configured two sitemaps.

  • One without language.
    image

  • One with language.
    image

image

After having generated my sitemaps in the scheduled job
image

I see the following behaviour:

The routing for my configuration without without language https://localhost:5001/Sitemap.xml seems to be working fine (I've confirmed this by adding a breakpoint in your GetaSitemapController.Index() endpoint and verifying that my breakpoint is actually triggered) and by confirming that the sitemap.xml is served.

image

However, the routing for my configuration without language https://localhost:5001/sv/Sitemap.xml does not seem to be working at all. My breakpoint in the GetaSitemapController.Index() endpoint is not triggered at all which leads me to believe there is something wrong with the language routes for the endpoint.

I think might be related to this issue: #28

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

Successfully merging a pull request may close this issue.

1 participant