Questions tagged [routing]

The tag has no usage guidance.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

Override the language-part in URL and add a region (en-fr / fr-fr)

I ran into a problem one year ago, but our we changed the specifications and so it was not neccessary anymore(another question here commented). One year later now, the issue is back, harder as before ...
1
vote
0answers
29 views

Route manipulating - set regioncode before language-code

I just finished the structure of a new site, now I am faced with the problem: "regions". I thought I can use categories for routing. Because I need: example.com/REGION/LANGUAGE/about-us or ...
1
vote
0answers
700 views

Custom Routes with URL Parameters and Pagination

I am migrating an old EE site to Craft. The EE site has a filter feature for certain weblogs. It outputs a list of entries for a weblog filtering on year, program, etc... which are passed as URL ...
1
vote
0answers
131 views

Alter the routing in Craft for every URL independent of language

How can I alter the routing in Craft? I need to add a (variable) segment to every possible URL. The reason is we have a multi lingual site with multiple regions. We need to know the correct region in ...
1
vote
0answers
99 views

Where to find info on Entry URL Formats and routing syntax/options?

Is there any documentation other than on the CraftCMS web site with details and examples of Entry URL Format options/syntax? I came across an example from Brandon Kelly in this thread yesterday which ...
1
vote
0answers
262 views

How do I use the section Entry URL format for registerSiteRoutes() in a plugin?

I'm trying to register a site route in my plugin based on the Entry URL format for a section chosen in the plugin settings. So if it's the default news section in the Craft install the URL format ...
0
votes
0answers
20 views

Cannot find page but is active in the admin panel. Staging and locally no issues

I've recently deployed an extension to an already existing craft website. I always have a staging website where we can make sure everything is working as expected. Everything was. When I pushed the ...
0
votes
0answers
43 views

Can't redirect cpTrigger and api routes/urls - oauth in craftcms

I have OAuth 2.0 installed in my Craft project. I built an event that every URL is redirected to example.com/oauth and needs authorization if not logged in. Everything works except these two routes: /...
0
votes
0answers
325 views

Path to asset file shows "Template not found!"

I have a headless Craft CMS site and now the frontend development should start. I have absolutely no frontend or templates as I only worked on the backend. The asset url got created at /images. If for ...
0
votes
0answers
126 views

How can i get the current applied route in CraftCMS?

I'm using a dynamic route that loads a template. I'm on a multisite setup with a language switch in the header menu. To be able to switch between sites or languages, the dynamic routes need to have ...
0
votes
0answers
256 views

404 shows "Internal Server Error" only on staging environment

Might be a duplicate, but couldn't find this exact question here. I have a pretty basic 404.twig template that should be catching things, as described here: https://docs.craftcms.com/v3/routing.html ...
0
votes
0answers
62 views

Can I add information to a CP new entries page?

I would like to add a google map in an entry edit page for certain entry types. I already have a plugin started to go and grab the lat and long for the entered address. What I'm now trying to ...