passing vars through templates appends URL
The main one is the home, this is where users start. Let’s say this site is about travel:
the user is presented with some choices on the page, and when they click those vars are passed to a new page in the URL like this
notice how wordpress automatically adds a trailing forward slash ‘/’ in between the child-page and the action vars being passed. This is what I need to figure out how to get get rid of so all the pages will work properly.
the pages work just fine when clicked from the /booktravel home no problem – despite the trailing forward slash. Like these examples:
The problem I’m having is when a user clicks an option from a child page the URL gets appended with a new child directory (because of the slash) and the URL comes up as a 404 not found.
In other words, if a user clicks an option from a child page like this:
the resultant URL comes up like this:
the URL should have been:
Any ideas? I’m assuming WordPress automatically adds that to pages? Is there any way to stop if from occurring?
- The topic ‘passing vars through templates appends URL’ is closed to new replies.