magento1-vsbridge icon indicating copy to clipboard operation
magento1-vsbridge copied to clipboard

Add RewriteController to allow easy handling of historic rewrites

Open nhp opened this issue 6 years ago • 6 comments

Added a new controller to be able to access the old rewrites vsf-api knows nothing about. It simply makes a DB call to core_url_rewrite, filtered by request_path and returns only the new final target.

Usage

Simply called by /vsbridge/rewrite/target?request_path=old_url this returns {"code":200,"result":"target_path"}

As we agreed with Łukasz Romanowicz on slack we should bring this functionality to the main magento1 trunk.

nhp avatar Jun 11 '19 08:06 nhp

Also added store_id handling as this could also be an issue and we added more specific result-status codes to reflect on what really was the problem instead of only returning 200 and especially 500.

nhp avatar Jul 03 '19 12:07 nhp

Do we still have open issues here?

nhp avatar Jul 10 '19 05:07 nhp

Any update on this one?

nhp avatar Aug 21 '19 12:08 nhp

Here I have found a small Problem. I will Update the PR in the next days.

ResuBaka avatar Aug 21 '19 13:08 ResuBaka

@ResuBaka hi! any update on the PR changes?

sandermangel avatar Sep 16 '19 09:09 sandermangel

I will update in the next days.

The problem is that I need to send the request URLs html encoded.

ResuBaka avatar Sep 16 '19 10:09 ResuBaka