Skip to content

Automaticlly adding version to route breaks some routing configurations #57

@carnage

Description

@carnage

Bug Report

Q A
Version(s) latest/all

Summary

When an API is set to use url versioning, the listener auto prepends the version segment into the route config however, it doesn't check the route TYPE. If the route type is anything other than Segment, it will break the routing and mean the route will never match.

How to reproduce

  1. Enable url versioning on a route.
  2. Set it's route type to Literal

Expected behavior

Suggest either automatically changing the route type to Segment or throwing an exception stating that the route must already be a segment route type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions