我拥有一个布茨or WebAssembly,希望确定来自URI的租户,并随时在URI展示浏览器地址的租户口。
在服务器一旁,我添加了一台中层设备,从申请的URI公路中确定租户,并管理迄今为止行之有效的路由。
But at the client side I just don t get it: When I navigate to https://domain/tenant
, everything is fine, the app starts and displays a page. But when I click on a link and navigate to any other page, the URI in the browsers address bar looks like https://domain/page_route
- instead of https://domain/tenant/page_path
.
因此,我的问题是:在浏览器在酒吧的地址总是可以看到,我如何拦截车道(从请说的<代码>Tenant.Current.Alias到)?
例:
- The user calls
https://domain
, which uses the default tenanttenant
- The user clicks on a link which routes to
page_path
, which should result in the URIhttps://domain/tenant/page_path
then
另一个例子:
- The user calls
https://domain/tenant
- The user clicks on a link which routes to
page_path
, which should result in the URIhttps://domain/tenant/page_path
then
顺便提一下,针对APIC申请,I ve 修改了<代码>HttpClient在客户中注射,并将BaseAddress
改为“URI”,其中包括租户。 这符合APIC的要求,但当然不影响正在浏览器地址展示的URI。
www.un.org/Depts/DGACM/index_spanish.htm 现在,我得出结论,我需要把所有页线连接起来,而URI在服务器方面也没有重写。