Navigation überspringen

[Gelöst] View in Loop Editor by url params only works without trailing slash

This support ticket is created vor 3 years, 1 month. There's a good chance that you are reading advice that it now obsolete.

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 -

Zeitzone des Unterstützers: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 3 years, 1 month.

Assistiert von: Luo Yang.

Author
Artikel
#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:

versteckter Link (This works as expected)
versteckter 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/