A waveguide assembly for waveguides (101a, 101b), the waveguide assembly comprises: a first waveguide comprising a first flange surrounding an end opening of the first waveguide; a second waveguide comprising a second flange surrounding an end opening of the second waveguide; wherein each flange (103a, 103b) comprises at least two holes which are periodically distributed around the respective end opening (105a, 105b); and wherein the first and second waveguides (101a, 101b) are arranged to be connected to each other by connecting the first flange to the second flange such that the end openings (105a, 105b) face each other and such that the holes in the first flange are at least partly glide symmetrically positioned with respect to the holes in the second flange, wherein the at least two holes in the first flange at least partly overlap with the at least two holes in the second flange such that the holes in the first flange are glided a certain period with respect to the at least two holes in the second flange when the first and second flanges (103a, 103b) are connected, the at least partly glide symmetric holes being configured to prevent leakage of signals guided through the first and second waveguides (101a, 101b) at the joint between the first and second flanges (103a, 103b), wherein all of the at least two holes in each flange (103a, 103b) are periodically distributed around the respective end opening (105a, 105b) in one row, wherein the at least partly glide symmetrically positioned comprises completely glide symmetrically positioned or quasi glide symmetrically positioned, and wherein the quasi glide symmetrically positioned comprises a small deviation from ar exact glide symmetric structure. a first waveguide comprising a first flange surrounding an end opening of the first waveguide; a second waveguide comprising a second flange surrounding an end opening of the second waveguide; wherein each flange (103a, 103b) comprises at least two holes which are periodically distributed around the respective end opening (105a, 105b); and wherein the first and second waveguides (101a, 101b) are arranged to be connected to each other by connecting the first flange to the second flange such that the end openings (105a, 105b) face each other and such that the holes in the first flange are at least partly glide symmetrically positioned with respect to the holes in the second flange, wherein the at least two holes in the first flange at least partly overlap with the at least two holes in the second flange such that the holes in the first flange are glided a certain period with respect to the at least two holes in the second flange when the first and second flanges (103a, 103b) are connected, the at least partly glide symmetric holes being configured to prevent leakage of signals guided through the first and second waveguides (101a, 101b) at the joint between the first and second flanges (103a, 103b), wherein all of the at least two holes in each flange (103a, 103b) are periodically distributed around the respective end opening (105a, 105b) in one row, wherein the at least partly glide symmetrically positioned comprises completely glide symmetrically positioned or quasi glide symmetrically positioned, and wherein the quasi glide symmetrically positioned comprises a small deviation from ar exact glide symmetric structure.