xtopher
|
Date: 12/11/2007 3:41 pm · Subject: URL Extensions · Rating: 6
The URL isn't showing up for any assets that I have added. Pages, Articles, Collaboration systems, CS posts, CS Threads, etc. I was able to replicate the problem on the demo servers and noticed a previous bug report mentioning the problem. And a comment stating it works as it should. I don't see this as the case. I sent Graham a link to the PB demo site I created 2007-12-11: http://demo.plainblack.com/demo1197408965_213/home/my-test-page feel free to see the action first hand. URLs are important to us.
|
colink
|
Date: 12/11/2007 6:28 pm · Subject: Re: URL Extensions · Rating: 0
For xtopher's sanity: I've confirmed this bug. URL extensions are not being added to URLs on Asset creation. If I have time over the next few days, I may be able to fix it, but if anyone else has the time/tuits, please feel free to take it and run with it.
|
colink
|
Date: 12/11/2007 11:11 pm · Subject: Re: URL Extensions · Rating: 5
Here's the scoop. The update method gets called four times. Each time it is called, it calls the filter function, fixUrl. So on the first pass, the URL is the assetId, as provided by new. If urlExtension is selected, then it is appended to the URL. The second time that fixUrl is called, the URL already has an extension, so no changes are made. The third and fourth times fixUrl is called, these times with actual user data, $self->get('url') is not equal to the assetId (it is actually equal to the assetId + the extension), so the extension is not appended to the user data.
|