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

Problem with colons in URL? #36

Open
mgroves opened this issue Sep 27, 2023 · 1 comment
Open

Problem with colons in URL? #36

mgroves opened this issue Sep 27, 2023 · 1 comment

Comments

@mgroves
Copy link
Owner

mgroves commented Sep 27, 2023

When using a particular frontend (https://github.com/khaledosman/angular-realworld-example-app), it seems to have trouble with colons in the URL.

Examples:

GET of "https://localhost:7272/api/articles/my-article-title::c2SkJ9HO6UDK " returns with 405 method not allowed
GET of "https://localhost:7272/api/article/my-article-title%3A%3Ac2SkJ9HO6UDK" (which is what Swagger UI generates) works fine.

Is it possible that this is a server-side routing issue? How can that be fixed?

If not, may need to change the delimiter/structure of slugs.

mgroves added a commit that referenced this issue Sep 28, 2023
@mgroves
Copy link
Owner Author

mgroves commented Sep 28, 2023

No, this wasn't a colon issue. It was actually a bonehead mistake by me using the wrong routes. I used "/api/article" in some places, where it's supposed to be "/api/articles". I also noticed that I used the wrong route for "unfavorite" while going through and double checking. Oops.

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