Search

I'm just curious seeing that Symphony currently enforces a / at the end of a URL via an htaccess 301 redirect. How come that the current-path and current-url parameters never include the / at the end?

I'm just curious as doing some modifications to a datasource to check if the link is the canonical link else forcing a redirect, and came across this possible discrepancy.

We discussed this some time ago: https://github.com/symphonycms/symphony-2/issues/1894.

@Micheal thanks for pointing me to that discussion (seems I was a couple of years late). I was pretty sure there were some reasons it was that way, I hardly use any of the two parameters so seeing that it's best practice to add a separate trailing / within XSLT as mentioned within the issue. I'm happy with it as it is.

So am I, after that discussion. Sometimes I really change my mind...

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details