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

"Localization of outgoing URIs" feature issue for relative paths #377

Closed
pheurteladding opened this issue Jul 24, 2018 · 2 comments
Closed

Comments

@pheurteladding
Copy link

Hello,

I hope your summer is going well.
I encounter an issue when performing localization of relative paths. In my razor CSHTML page i have the html: <a class="c-link c-link--chevron u-color-secondary" href="Help#faq">[[[Toutes nos questions fréquentes]]]</a>
and this is precessed into: <a class="c-link c-link--chevron u-color-secondary" href="/fr/Help#exemples">Toutes nos questions fréquentes</a>
instead of <a class="c-link c-link--chevron u-color-secondary" href="Help#exemples">Toutes nos questions fréquentes</a>
Relative paths (not starting with '/' char) should not be processed.

And thank you again for your work!

@turquoiseowl
Copy link
Owner

Summer's not going too bad thanks.

What's the URL for the request in question? If it doesn't end with a forward slah can you try with the forward slash to see if that makes a difference.

i18n SHOULD convert unrooted URLs into rooted (and relative) ones prefixed with the current langtag.

More info here #286

@pheurteladding
Copy link
Author

Hi,

Fially I used MVC rooting (via @Url.Action() ) to bypass the problem. The problem was proably due to the unrooted conversion feature.
Anyway thank you for your quick reply :-)

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

2 participants