Jump to content

Recommended Posts

Posted

Hi,

I'm struggling with adding a querystring parameter in a page URL. Links like my-domain.com/quote?pack_id=xxx leads to the 404 error page.

What are the template settings to allow Processwire to accept the querystring parameters ?

Posted

There's nothing special to it, it just works. But It may should be with trailing slash

my-domain.com/quote/?pack_id=xxx

where /quote/ is a real page.

  • Like 1
Posted (edited)

I think it's about the ending slash that is missing. (Or you've enabled no ending slash in your templates settings)

my-domain.com/quote?pack_id=xxx should probably be: my-domain.com/quote/?pack_id=xxx

Edited by Martijn Geerts
Soma beats me, I should have saved and edit later
Posted

The missing trailing slash would NOT result in 404 but a redirect. The "result in 404" is more a indication that /quote/ doesn't exits.

  • Like 2
Posted

Solved ! Silly me the 404 error code exists for a reason. I wasn't calling the right page :unsure: (quote instead of quotes).

Thank you guys.

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...