Skip Navigation

[Resolved] View in Loop Editor by url params only works without trailing slash

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 1 year, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2604609

We created an archive page which should be filled dynamically.
For this, we use url parameters.

However this only works when the url has no trailing slash at the end.

See this example:

hidden link (This works as expected)
hidden link (This does not work!)

Problem is: The trailing slash gets added by most browser automatically. (or maybe not, see edit)

Edit: We changed the permalink structure, and removed the trailing slash. Is this the right way to do? Or is there a way to read url params even with a trailing slash?
Looking forward to your answer!

Best regards,
Walid

#2604669

Hello,

Yes, in your case, it does not need trailing slash.

And you can follow WordPress document to setup the permalink, including custom post type:
https://wordpress.org/documentation/article/customize-permalinks/