Admin Option to Combine Pages With and Without Trailing Slash In Reports | Community
Skip to main content
jaydge
Level 2
November 8, 2010
New

Admin Option to Combine Pages With and Without Trailing Slash In Reports

  • November 8, 2010
  • 2 replies
  • 1718 views

It would be really nice to be able to make

 

www.example.com/page/

and

www.example.com/page

 

be able to combine on one line since they're obviously the same page.

 

It's generally impossible to completely get rid of one or the other because some browsers report the URL differently, and users with no Javascript cannot have the URL changed before being submitted.

 

Thanks!

JD

2 replies

vidya05925
November 9, 2010

Hi there,

 

I use the s.pageName variable to track the relative URL but for dashboards i use a sprop with a user-friendly page name. That way, you can have a work around for your issue.

 

Hope that helps,

Vidya Subramanian

jaydge
jaydgeAuthor
Level 2
November 9, 2010

Thanks Vidya,

 

Actually I believe what is happening is that the GetPageName function in s_code.js returns without the trailing slash in some browsers.

 

I might override this by always populating the pageName variable from server-side code and never allowing Javascript to determine it.