How can I find out the current route in Rails?
I need to know the current route in a filter in Rails. How can I find out what it is? I’m doing REST resources, and see no named routes. 14 Answers 14
I need to know the current route in a filter in Rails. How can I find out what it is? I’m doing REST resources, and see no named routes. 14 Answers 14
Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route? For example: user1.domain.com goes to one place user2.domain.com goes to another? Or, can I make it so both of these go to the same controller/action with a username parameter? 10 Answers 10
I am receiving the rather self explanatory error: A potentially dangerous Request.Path value was detected from the client (*). The issue is due to * in the request URL: https://stackoverflow.com/Search/test*/0/1/10/1 This url is used to populate a search page where ‘test*’ is the search term and the rest of the url relates to various other … Read more
How do I get the current route in Symfony 2? For example, routing.yml: somePage: pattern: /page/ defaults: { _controller: “AcmeBundle:Test:index” } How can I get this somePage value? 13 Answers 13
I’m looking for some advice for the following scenario: We will have a site for a company with multiple locations throughout the US. Some of the pages are specific to a certain office location while other pages are generic for all locations. I’m thinking of creating a page structure like this: – Home (Generic) – … Read more
I want to know a concept of making a multi language routing system for WP. That is the best practice, to make this routing system with add_rewrite_rules for pages post archive etc in part, or to use add_rewrite_endpoint with bitmask? 0
I have a standalone page with the slug: hubv2 that is using a custom page template which runs a small React app. The React app handles in browser routing and it works fine. For example I can hit /hubv2, load my app and click-navigate from /hubv2 to /hubv2/example-page (which is handled entirely by my app) … Read more
I am testing the integration of a VueJS app in WordPress. It actually works (no styles yet). BUT If I access a URL like https://example.com/my-vue-route/about, the .htaccess URL rewriting redirects any incoming HTTPS request to the index.php of WordPress. So I actually never land on /my-vue-route/about but on the /about page, as WordPress thinks I … Read more
May be the question in title is not explaining what exactly I want. So I will explain one logic and then ask what problem I am getting from that. We are using wordpress. We have 2 categories Option1(Having 64 different values) and Option2(Having 8 different values). We wanted url like ourdomain/Option1/Option2 depending on users location. … Read more
I am using S3 to host a javascript app that will use HTML5 pushStates. The problem is if the user bookmarks any of the URLs, it will not resolve to anything. What I need is the ability to take all url requests and serve up the root index.html in my S3 bucket, rather than just … Read more