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

Cannot use Composite.Core.Routing.Pages.C1PageRoute.RegisterPathInfoUsage() on secondary hostnames' home page #820

Open
NimeCloud opened this issue Jan 25, 2023 · 0 comments

Comments

@NimeCloud
Copy link

NimeCloud commented Jan 25, 2023

Hi!

I've got a main domain and a few secondary domains.

Main: izsmmmo.org.tr
Secondary : izsm.link
I also get the secondary site using page link on main domain: izsmmmo.org.tr/link

I need to intercept the first query string. On the main domain it works: https://izsmmmo.org.tr/link/random3732
I get "random3732" as expected.

However; at the secondary domain I got 404 error: https://izsm.link/random3732

If I left the query empty; the page appears with no error: https://izsm.link/

It seems like Composite.Core.Routing.Pages.C1PageRoute.RegisterPathInfoUsage(); won't work on secondary domains' root page.

Is it bug or feature and how can I fix it? I don't want to use another page https://izsm.link/go/random3732 if possible...

Secondary site is ok without any query:

2-secondary-home

Secondary site doesn't love queries; the expected responses are 200 or 400. I got 404 here:

2-secondary-domain

Primary site is ok. It gives a 400 error if query not found on database:

1-main-domain

@NimeCloud NimeCloud changed the title Cannot use Composite.Core.Routing.Pages.C1PageRoute.RegisterPathInfoUsage() on secondary hostnames Cannot use Composite.Core.Routing.Pages.C1PageRoute.RegisterPathInfoUsage() on secondary hostnames' home page Jan 25, 2023
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