I need help with routing. I tried for hours to see why one of the page is not working. I couldn’t find the why and how to fix it.
Here is the problem: I followed all the available steps for routing. Nothing.
I am trying to filter a page by id_blog using the url parameter.
But the page does not respond at all.
Both pages with the url parameter loaded for me but the routing one doesn’t load the post, are you sure the state manager is passing the url param to your server connect?
This is the main page: https://www.1connect1.com/Blog/blogpost.php?id_blog=34
I am trying to change and make the route work with the query.
I was pointing out that state manager is not the issue and server connect is also not the issue because they both work when I remove the route.
No! When you click on any of the card it will direct you to the page with filter id_blog.
As you see in https://www.1connect1.com/blog/34 there is not return of output. That is where I am having a headache.
I maybe wrong but you are sending 2 different variables in the headers what is defined in your state manager one header is sending ?idblogpost=34 (non working one) the other is ?id_blog=34 (working one)
The first link is the same page as the link at the bottom.
for some reason, that one works but the second one with route does not work.
I shared that to give you more understanding of the situation
When you click on any of these three. It will redirect you to the page that gives you a filter query with url.
But the output is not showing.
I don’t know if you understand my issue clearly.
To be honest, I am even more confused with this latest post.
Routing is pretty simple. And so are the setting the params.
Most likely you are mixing multiple things leading to all the confusion and issues.
See if this helps:
Routing is just a simpler more readable name for existing pages.
The route /blog/:id_blog is NOT pointing to blogpost.php
Or, you have some other route in place, with similar param structure, which is overriding this route.