-
-
Notifications
You must be signed in to change notification settings - Fork 158
Pagination Links not forming correctly after hosting on IIS #948
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
Comments
Hi @Priyankadhavale, thanks for reporting this. Its been many years ago since I last used IIS and its not something I can easily repro/debug. However, I can give you some pointers where to put breakpoints so you can analyze this yourself. The IJsonApiRequest.BasePath is set here:
Which is then used to render paging/self links here:
Maybe some of the suggestions here help in finding a way to obtain the IIS application name. Hope that helps! |
Hi @bart-degreed , Thanks for quick response. I have seen the code and in GetBasePath() method the following code is not adding httpRequest.PathBase (gives application name on iis ) string to builder because of that I can only see the URL till "http://[ip-address]" Can you please suggest on this Thanks, |
I think you're on the right track with PathBase (explanation here). Things that come to mind:
Looks like I'll need to setup IIS after all, to try these things out. At the moment, other work has higher priority. Is this something you need soon or can it wait some time? In the mean time, can you work around this by hosting at the IIS root instead of from an application virtual directory? |
Hi @bart-degreed , We are using JANDC package in our application and we have release in next month. Is it possible that we can get fix for this till mid of March 2021. And in the mean time we are trying to use this by hosting on IIS root instead of application virtual directory. There the URL is forming correctly. Thanks, |
I cannot make hard promises but I intend to help you. Does #953 fix the problem? |
Fixed in v4.0.4. |
DESCRIPTION
After hosting the JANDC used application on IIS, the pagination links generated by JANDC does not contain the application name in URL
STEPS TO REPRODUCE
I have tried adding the my application under Default site
so my URL forms like
https://[ip address]/api/v1/articles?page[size]=10&page[number]=2
So whenever I am accessing this URL => I am not able to get the result
Actual URL
https://[ip address]/[applicationName]/api/v1/articles?page[size]=10&page[number]=2
EXPECTED BEHAVIOR
Can you please let me know if we can achieve this with JANDC and how we can achieve this.
ACTUAL BEHAVIOR
Right now the base path that means https://: this much only added to pagination links in Links section of result.
VERSIONS USED
The text was updated successfully, but these errors were encountered: