Menu

#3916 fix story/section links when no subdomain

Slash 2.5/3.0
open
nobody
Stories (322)
5
2007-05-16
2007-05-16
shane
No

If a story's primaryskid is set to a skin which has no hostname (ie is not using a subdomain) the following is not done correctly:

links to the story will not include ?section=
the link to the section, itself, will not have the ?section=
the link to the section, has index.pl hard-coded instead of thisskin.index_handler.

this patch updates Slash::Utility::Display such that linkStory will add a section={foo} to the params hash, if needed. And the dispStory template needed 2 areas updated to remove the hard-coded index.pl and include the ?section=

Discussion

  • shane

    shane - 2007-05-18

    fix story links when primary skid is not a subdomain inc index.pl fix

     
  • shane

    shane - 2007-05-18

    Logged In: YES
    user_id=52587
    Originator: YES

    File Added: story.links.sections.nohost.patch_v2.txt

     

Log in to post a comment.