Questions tagged [app-route]

app-route is an element that enables declarative, self-describing routing for a web app.

In its typical usage, a app-route element consumes an object that describes some state about the current route, via the route property. It then parses that state using the pattern property, and produces two artifacts: some data related to the route, and a tail that contains the rest of the route that did not match.

Reference: https://www.webcomponents.org/element/PolymerElements/app-route

35 questions
9
votes
1 answer

Flask app route for paths that start with X

I am a beginner with Flask and python. I want to create a handler function for paths that start with "/favicon". For example the following should be handled: /favicon /faviconFOO /favicon_bar /favicon/buzz /favicon1337 The following should not be…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
7
votes
2 answers

Polymer app-route: intercept refresh page

I am struggling with getting out of the current situation: we have a polymer SPA (A) deployed on a certain server and bound to a certain url: http://example.com/A, we do need to show legacy pages of the old application for the time being, in order…
AMC
  • 130
  • 8
4
votes
0 answers

Advanced Polymer routing

I'm trying to build a Polymer web-app. I've followed the examples, read the documentation, and understand the starter-kits. The problem is I have no idea how to go beyond the examples. In particular - app-routing. I have a basic app structure in…
3
votes
2 answers

Next.js 13.3 appends txt to URLs when navigating pages

I'm a student just starting to study the web. I built a project with SSG (output: "export") for uploading to Cloudflare pages. I am using Next.js version 13. I used something called app routing, but when I build with SSG, I get "txt" in the URL…
3
votes
1 answer

How to implement routing in polymer 3 using app-route

I was stuck with implementing routing in polymer 3. I followed the basic guide provided on app-route documentation. But on loading the web page., I don't see any component getting loaded. I checked in shadow DOM and don't see any DOM getting…
shabarinath
  • 548
  • 3
  • 18
3
votes
1 answer

Cannot access changed array "value" in route function in PolymerJS 3.0? (Using iron-ajax and app-route elements)

I am new to Polymer and currently learning Polymer 3.0. I am trying to make an app which is working as follows: fetches playlists data from public url (using iron-ajax element) handle data in handleResponse() func, and assign the value to…
Raj
  • 1,100
  • 3
  • 20
  • 33
3
votes
2 answers

Is it possible to rewrite URL using ?

Consider I want to rewrite a URL from /register to /tenant/register, where:- /register does not have an actual view, as it only serve to make URL nicer. /tenant/register is the actual view, with a view element. Is it possible…
Andrew See
  • 1,062
  • 10
  • 21
2
votes
1 answer

Angular Child Route not working and redirect me to the same page

I have tried to change my route and so far I didn't find any issues. But if you find any flaws please let me know, also I try to find any type error and double-check my components, so far I didn't find one, but then again let me know. I try to type…
jricc russel
  • 61
  • 3
  • 9
1
vote
3 answers

Next.js App Routing Behaves Differently After Deployment to Netlify

I'm currently developing a Next.js app (version 13.4.1) and have encountered an issue with the new App Routing feature. In my local development environment, everything works as expected, but once deployed to Netlify, I'm experiencing different…
Liren Yeo
  • 3,215
  • 2
  • 20
  • 41
1
vote
2 answers

How can use external js files into angular.json in angular 6

I have a side bar menu script file, in assets folder that I include into index.html. Whenever I refresh the home/dashboard child route the script will be working, If I'm redirected from the initial route / to home/dashboard the sidebar show/hidden…
1
vote
0 answers

Two-way binding to app-route routeData with fallbackSelection breaks back buton

My goal is to provide a default view in my route which is also accessible via URL. To accomplish that goal, I bound the selected properties of paper-tabs (an iron-selector implementation) and iron-pages to routeData.view