trendwerk / sphynx

A light & simple WordPress starter theme 😽
16 stars 2 forks source link

Redirects #103

Closed haroldangenent closed 10 years ago

haroldangenent commented 10 years ago

We've talked about redirects today. This is what we decided:

Optional features:

Any additions?

Maybe we should give this some priority so we can still use redirects in new websites.

haroldangenent commented 10 years ago

Sidenote: Don't forget this when the Redirection API is finished: https://bitbucket.org/trendwerk/tp-plugins/issue/6/add-301-redirect-to-data-migration

haroldangenent commented 10 years ago

I've been working on this. Feel free to try this out. You'll need features branches features/redirects from trendpress and trendpress-child.

To-do's:

Commit: https://github.com/trendwerk/trendpress/commit/b03df07a4a9f4a437f0da493117b1b165f2010e6

haroldangenent commented 10 years ago

We've just talked about this. Wanted features:

Also, it should be more clear how the UI works. Results based on Source should be displayed first, Destination second. It's not very clear that pressing "Enter" creates a redirect, maybe a pop-out? Let's think about it.

haroldangenent commented 10 years ago
sboerrigter commented 10 years ago

Hi Harold,

Thanks for this nice feature. I tested it today and it looks really good! Here are some bugs I found and some comments:

And some cosmetic comments:

haroldangenent commented 10 years ago

This might be causing bugs as well: http://stackoverflow.com/questions/3902635/how-does-one-capture-a-macs-command-key-via-javascript

haroldangenent commented 10 years ago

To complicate this a little more, here are some ideas for future features:

haroldangenent commented 10 years ago

@sboerrigter Thanks for your feedback.

On cosmetics:

Feel free to make changes to the layout.

I'll keep posting updates here.

haroldangenent commented 10 years ago

Fixed a few things:

As far as I see, this basic version is ready to be merged to master. What do you guys think?

sboerrigter commented 10 years ago

Redirect not working

Clear searchbox input

Wrong results for "actie"

“add a new redirect” always visible

Add a redirect after the slug of a post is changed

Cosmetic changes

New features

haroldangenent commented 10 years ago

Add a new redirect button I've added a this button. What do you think?

schermafbeelding 2014-02-06 om 12 32 44

Merge This feature could use some cross-browser testing. Anyone interested in testing IE? Cross-browser test shouldn't get into the way of merging it to master.

What do you guys think? Basic version done & ready for merging?

sboerrigter commented 10 years ago

Look's good. I think it can go to the master branche after the IE test. I don't have virtual machine installed on my machine, so I can't test it.

Maybe @luukdv can test it?

luukdv commented 10 years ago

Will do.

haroldangenent commented 10 years ago

Did you get a chance to test this yet? Might be a good idea to implement this for our next project.

luukdv commented 10 years ago

Sorry for the delay.

I've tested the redirects in IE10, IE9 and IE8. Nothing weird, all works fine. I think it's ready for master.

haroldangenent commented 10 years ago

Awesome! Thanks alot for testing. Couple of small things to do, like a basic API and move the LESS from child to parent. Will merge to master some time next week.

haroldangenent commented 10 years ago

Merged it in https://github.com/trendwerk/trendpress/commit/455ef8d7db181927fcf5db2e1a76500f7f326ea4. Sorry for the delay, couldn't find time to create the basic API and wrap things up.