periods in card names?

Support Ticket

+status
 

Exploring how it might work to use card names which end with ".html" to see if i can use Wagn to replace my whole site and have exiting URLs not break.

Created http://test.dwagn.org/wagn/testing_old_school_URLs_in_Wagn for testing. Creating cards with periods in their names via URL does not work - see http://test.dwagn.org/wagn/notme.html - but via inclusion or just typing the name in th new card interface works, and i created two that you can see at that first link. URLs with the period on them are interpreted as asking for the name up to but not including the period - e.g. http://test.dwagn.org/wagn/webpage.html

 

Ticket make periods in card names work to address card creation and URL handling?


no, in general it already works to have periods in cardnames. We have lots of cards with periods in card names.

 

/new/notme.html is a malformed url. If you do /new/X, then X should be a cardtype.

 

However, they actually *shouldn't* let you create cards ending in ".html", because, as you point out, cards don't work when they have these format extensions on the end: "html|json|xml|rss|kml"

 

That is, those are meant to be different ways to render cards. If anything, we should ticket don't allow card names to end in extensions

  --Ethan McCutchen.....Sun Feb 28 16:40:40 -0800 2010


( /new/notme.html was a mis-type, i meant /new/notme.html )

 

Ouch. So if someone wants to move an existing site into Wagn, they have to change all of their existing URLs?

  --John Abbe.....Thu Mar 04 13:56:16 -0800 2010


?? those two look the same to me.

 

chances are you will have to change urls in many cases, yeah. But not in this case. If your page is named booger.html, then just name the card "booger" and you're fine.

 

the cases where you'll have to change urls are when your urls point to subdirectories, like /ethan/nose/booger.html. In that case, you'd have to hack into the routing file to get it to work.

  --Ethan McCutchen.....Thu Mar 04 14:41:00 -0800 2010


gih, sorry, /wagn/notme.html - which like http://test.dwagn.org/notme.html goes to "notme". So switching to Wagn doesn't break old URLs, but does require changing the canonical URL. That takes me a step toward being willing/able to switch my site over to Wagn. Is there some reason we don't just have http://test.dwagn.org/notme.html go to "notme.html" ? Nothing wrong with that card name, right?

 

Regarding subdirectories, if you go to http://test.dwagn.org/johnca/test.html you are offered to create "johnca/test" (and if you submit you get an ugly error). Ticket nice error msg for invalid chars in new card URLs?

 

Does it make sense as a design principle that we would ultimately like for people to be able to switch from another system to Wagn without changing canonical links, or breaking subdirectory links? (also see remove wagn from canonical URLs)

  --John Abbe.....Thu Mar 11 14:50:41 -0800 2010


re "nothing wrong with that card name" ... well, yes, I don't think we want card names that end with recognized extensions. Otherwise we can't infer response types from the extension in case someone wanted to see it as another type.

 

yes to ticket

 

not sure I'm bought in enough yet to stand behind "design principle," especially since we're already in egregious violation left and right, but it would be great if that were true. Probably a 3.0 priority if anything.

  --Ethan McCutchen.....Thu Apr 29 09:48:28 -0700 2010


ticket added.

 

closing this, and moving conversation to maintain canonical URLs from migrating sites

  --John Abbe.....Thu Apr 29 13:34:24 -0700 2010