You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some Cloud Functions deployed on Firebase and I wanted to add some documentation to it.
For some reason, after setting an endpoint for 'docs', if I accessed the URL normally it would redirect to a similar URL but with the last slice of the path removed, you can read the whole process I went through [https://stackoverflow.com/questions/74803435/setting-up-swagger-ui-in-firebase-functions-server/74813031#74813031](on this Stack Overflow post), but basically if swagger ui was served on endpoint 'something/docs' accessing the URL 'https://base.url/something/docs' would redirect to 'https://base.url/docs' which is an invalid endpoint (and also would raise some Firebase issues, you can read about them on the Stack Overflow post.
After many tests, I found out this redirection did not happen if you add an extra forward slash to the URL, so in the case above, the documentation loads no problem if you go to 'https://base.url/something/docs/'.
I could not find why this is or if there's another way to solve it. I believe it only happens on Firebase too.
The text was updated successfully, but these errors were encountered:
I have some Cloud Functions deployed on Firebase and I wanted to add some documentation to it.
For some reason, after setting an endpoint for 'docs', if I accessed the URL normally it would redirect to a similar URL but with the last slice of the path removed, you can read the whole process I went through [https://stackoverflow.com/questions/74803435/setting-up-swagger-ui-in-firebase-functions-server/74813031#74813031](on this Stack Overflow post), but basically if swagger ui was served on endpoint 'something/docs' accessing the URL 'https://base.url/something/docs' would redirect to 'https://base.url/docs' which is an invalid endpoint (and also would raise some Firebase issues, you can read about them on the Stack Overflow post.
After many tests, I found out this redirection did not happen if you add an extra forward slash to the URL, so in the case above, the documentation loads no problem if you go to 'https://base.url/something/docs/'.
I could not find why this is or if there's another way to solve it. I believe it only happens on Firebase too.
The text was updated successfully, but these errors were encountered: