Skip to main content
added 14 characters in body; edited title
Source Link
simesy
  • 495
  • 5
  • 16

How do I convert a string like node/1 into a RouteMatch or Url object?

I'm creating a text filter that modifies links. I am processing all the hrefs, and I want to load a RouteMatch or Url object for all valid urls like "/node/1". I need this to also handle i18n URLs. How do I convert a string like node/1 into a RouteMatch or Url object?

How do I convert a string like node/1 into a RouteMatch object?

I'm creating a text filter that modifies links. I am processing all the hrefs, and I want to load a RouteMatch object for all valid urls like "/node/1". I need this to also handle i18n URLs. How do I convert a string like node/1 into a RouteMatch object?

How do I convert a string like node/1 into a RouteMatch or Url object?

I'm creating a text filter that modifies links. I am processing all the hrefs, and I want to load a RouteMatch or Url object for all valid urls like "/node/1". I need this to also handle i18n URLs. How do I convert a string like node/1 into a RouteMatch or Url object?

Source Link
simesy
  • 495
  • 5
  • 16

How do I convert a string like node/1 into a RouteMatch object?

I'm creating a text filter that modifies links. I am processing all the hrefs, and I want to load a RouteMatch object for all valid urls like "/node/1". I need this to also handle i18n URLs. How do I convert a string like node/1 into a RouteMatch object?